The Document type exposes the following members.

Constructors

  Name Description
Public method Document
Creates a new instance.

Methods

  Name Description
Public method BeginUndo
Begins grouping up editing actions into a single UNDO action.
Public method ClearHistory
Clears all stacked edit histories.
Public method EndUndo
Ends grouping up editing actions.
Public method FindMatchedBracket(Int32)
Finds matched bracket from specified index.
Public method FindMatchedBracket(Int32, Int32)
Finds matched bracket from specified index.
Public method FindNext(String, Int32)
Finds a text pattern.
Public method FindNext(Regex, Int32)
Finds a text pattern by regular expression.
Public method FindNext(String, Int32, Boolean)
Finds a text pattern.
Public method FindNext(String, Int32, Int32)
Finds a text pattern.
Public method FindNext(Regex, Int32, Int32)
Finds a text pattern by regular expression.
Public method FindNext(String, Int32, Int32, Boolean)
Finds a text pattern.
Public method FindPrev(String, Int32)
Finds a text pattern backward.
Public method FindPrev(Regex, Int32)
Finds a text pattern backward by regular expression.
Public method FindPrev(String, Int32, Boolean)
Finds a text pattern backward.
Public method FindPrev(String, Int32, Int32)
Finds a text pattern backward.
Public method FindPrev(Regex, Int32, Int32)
Finds a text pattern backward by regular expression.
Public method FindPrev(String, Int32, Int32, Boolean)
Finds a text pattern backward.
Public method GetCaretIndex
Gets caret location by logical line/column index.
Public method GetCharAt
Gets a character at specified index.
Public method GetCharClass
Gets class of the character at given index.
Public method GetCharIndexFromLineColumnIndex
Calculates char-index from logical line/column index.
Public method GetEnumerator
Gets content enumerator.
Public method GetLineColumnIndexFromCharIndex
Calculates logical line/column index from char-index.
Public method GetLineContent
Gets content of the logical line.
Public method GetLineContentWithEolCode
Gets content of the logical line without trimming EOL code.
Public method GetLineDirtyState
Gets dirty state of specified line.
Public method GetLineEndIndexFromCharIndex
Gets index of the end position of the line which contains a character at the specified index.
Public method GetLineHeadIndex
Gets index of the first character in specified logical line.
Public method GetLineHeadIndexFromCharIndex
Gets index of the first char in the logical line which contains the specified char-index.
Public method GetLineIndexFromCharIndex
Calculates logical line index from char-index.
Public method GetLineLength(Int32)
Gets length of the logical line.
Public method GetLineLength(Int32, Boolean)
Gets length of the logical line.
Public method GetLineLengthFromCharIndex(Int32)
Gets length of the logical line which contains the specified char-index.
Public method GetLineLengthFromCharIndex(Int32, Boolean)
Gets length of the logical line which contains the specified char-index.
Public method GetMarkedRange
Gets range of text part which includes specified index which is marked with specified ID.
Public method GetMarkedText
Gets text part marked with specified ID at specified index.
Public method GetMarkingBitMaskAt
Gets marking IDs at specified index as a bit mask (internal representation).
Public method GetMarkingsAt
List up all markings at specified index and returns their IDs as an array.
Public method GetSelection
Gets range of current selection. Note that this method does not return [anchor, caret) pair but [begin, end) pair.
Public method GetTextInRange(Int32, Int32)
Gets text in the range [begin, end).
Public method GetTextInRange(Int32%, Int32%)
Gets text in the range [begin, end).
Public method GetTextInRange(Int32, Int32, Int32, Int32)
Gets text in the range [ (fromLineIndex, fromColumnIndex), (toLineIndex, toColumnIndex) ).
Public method GetWordAt(Int32)
Gets a word at specified index.
Public method GetWordAt(Int32, Int32%, Int32%)
Gets a word at specified index.
Public method IsCDATA
Gets whether the character at specified index is just a data without meaning on grammar.
Public method Static member IsCombiningCharacter(Char)
Determines whether given character is a combining character or not.
Public method IsCombiningCharacter(Int32)
Determines whether given character is a combining character or not.
Public method Static member IsCombiningCharacter(String, Int32)
Determines whether given character is a combining character or not.
Public method Static member IsHighSurrogate
Determines whether given char is a high surrogate or not.
Public method Static member IsLowSurrogate
Determines whether given char is a low surrogate or not.
Public method IsMarked
Determine whether specified index is marked with specified marking ID or not.
Public method IsNotDividableIndex(Int32)
Determines whether text can not be divided at given index or not.
Public method Static member IsNotDividableIndex(String, Int32)
Determines whether text can not be divided at given index or not.
Public method Mark
Marks up specified text range.
Public method NextGraphemeClusterIndex
Gets index of next grapheme cluster.
Public method PrevGraphemeClusterIndex
Gets index of previous grapheme cluster.
Public method Redo
Executes REDO.
Public method Replace(String)
Replaces current selection.
Public method Replace(String, Int32, Int32)
Replaces specified range [begin, end) of the content into the given string.
Public method SetCaretIndex
Sets caret location by logical line/column index. Note that calling this method will release selection.
Public method SetCharClass
Sets class of the character at given index.
Public method SetSelection(Int32, Int32)
Sets selection range.
Public method SetSelection(Int32, Int32, IView)
Sets selection range.
Public method Undo
Executes UNDO.
Public method Unmark
Removes specified type of marking information at specified range.

Properties

  Name Description
Public property AnchorIndex
Gets index of the position where the selection starts (in char-index).
Public property CanRedo
Gets whether an available REDO action exists or not.
Public property CanUndo
Gets whether an available UNDO action exists or not.
Public property Capacity
Gets or sets the size of the internal buffer.
Public property CaretIndex
Gets index of where the caret is at (in char-index).
Public property EolCode
Gets or sets default EOL Code of this document.
Public property Highlighter
Gets or sets highlighter object to highlight currently active document or null to disable highlighting.
Public property IsDirty
Gets or sets whether any unsaved modifications exist or not.
Public property IsReadOnly
Gets or sets whether this document is read-only or not.
Public property IsRecordingHistory
Gets or sets whether this document is recording edit actions or not.
Public property Item
Gets one character at given index.
Public property LastModifiedTime
Gets the time when this document was last modified.
Public property Length
Gets number of characters currently held in this document. Note that a surrogate pair or combining characters will be counted as two characters.
Public property LineCount
Gets number of the logical lines.
Public property MarksUri
Gets or sets whether URIs in this document should be marked automatically with built-in URI marker or not.
Public property MemoryUsage
Gets estimated memory size used by this document.
Public property RectSelectRanges
Gets or sets text ranges selected by rectangle selection.
Public property SelectionMode
Gets or sets how to select text.
Public property Tag
Gets or sets an object associated with this document.
Public property Text
Gets or sets currently inputted text.
Public property WatchPatterns
Gets the list of watching patterns.
Public property WordProc
Gets or sets word processor object which determines how Azuki handles 'words.'

Events

  Name Description
Public event ContentChanged
Occurs when the document content was changed. ContentChangedEventArgs contains the old (replaced) text, new text, and index indicating the replacement occured.
Public event DirtyStateChanged
Occurs when IsDirty property has changed.
Public event SelectionChanged
Occurs when the selection was changed.
Public event SelectionModeChanged
Occures soon after selection mode was changed.

See Also