C# Class Mono.TextEditor.TextDocument

Inheritance: AbstractAnnotatable, IBuffer, ICSharpCode.NRefactory.Editor.IDocument
Show file Open project: powerumc/monodevelop_korean Class Usage Examples

Public Properties

Property Type Description
diffTracker DiffTracker

Private Properties

Property Type Description
BeginAtomicUndo void
CompareMarkers int
EndAtomicUndo void
GetDiffCodes int[]
HandleFoldSegmentTreetreeNodeRemoved void
HandleSplitterLineSegmentTreeLineRemoved void
ICSharpCode ICSharpCode.NRefactory.TextLocation
ICSharpCode ICSharpCode.NRefactory.Editor.IDocument
ICSharpCode ICSharpCode.NRefactory.Editor.IDocumentLine
ICSharpCode ICSharpCode.NRefactory.Editor.ITextAnchor
ICSharpCode ICSharpCode.NRefactory.Editor.ITextSource
ICSharpCode int
ICSharpCode string
ICSharpCode void
ICSharpCode void
ICSharpCode void
ICSharpCode void
ICSharpCode void
ICSharpCode void
ICSharpCode void
ICSharpCode void
IServiceProvider object
InformFoldChanged void
InformFoldTreeUpdated void
InterruptFoldWorker void
RemoveFolding void
SearchMatchingBracketBackward int
SearchMatchingBracketForward int
UpdateFoldSegmentWorker HashSet

Public Methods

Method Description
AddMarker ( Mono.TextEditor.DocumentLine line, Mono.TextEditor.TextLineMarker marker ) : void
AddMarker ( Mono.TextEditor.DocumentLine line, Mono.TextEditor.TextLineMarker marker, bool commitUpdate ) : void
AddMarker ( Mono.TextEditor.TextSegmentMarker marker ) : void
AddMarker ( int lineNumber, Mono.TextEditor.TextLineMarker marker ) : void
ClearFoldSegments ( ) : void
ClearUndoBuffer ( ) : void
CommitDocumentUpdate ( ) : void
CommitLineUpdate ( Mono.TextEditor.DocumentLine line ) : void
CommitLineUpdate ( int line ) : void
CommitMultipleLineUpdate ( int start, int end ) : void
CommitUpdateAll ( ) : void
Contains ( TextSegment segment ) : bool
Contains ( int offset ) : bool
CopyTo ( int sourceIndex, char destination, int destinationIndex, int count ) : void
CreateDocumentSnapshot ( ) : TextDocument
CreateImmutableDocument ( string text, bool suppressHighlighting = true ) : TextDocument
CreateReader ( ) : System.IO.TextReader
CreateReader ( int offset, int length ) : System.IO.TextReader
CreateSnapshot ( int offset, int length ) : ICSharpCode.NRefactory.Editor.ITextSource
Diff ( TextDocument changedDocument, bool includeEol = true ) : IEnumerable
EnsureOffsetIsUnfolded ( int offset ) : void
EnsureSegmentIsUnfolded ( int offset, int length ) : void
GetCharAt ( Mono.TextEditor.DocumentLocation location ) : char
GetCharAt ( int offset ) : char
GetCharAt ( int line, int column ) : char
GetCharacterClass ( char ch ) : CharacterClass
GetCurrentUndoDepth ( ) : int
GetEndFoldings ( Mono.TextEditor.DocumentLine line ) : IEnumerable
GetEndFoldings ( int lineNumber ) : IEnumerable
GetEndFoldings ( int offset, int length ) : IEnumerable
GetExtendingTextMarker ( int lineNumber ) : IExtendingTextLineMarker
GetFoldingContaining ( Mono.TextEditor.DocumentLine line ) : IEnumerable
GetFoldingContaining ( int lineNumber ) : IEnumerable
GetFoldingContaining ( int offset, int length ) : IEnumerable
GetFoldingsFromOffset ( int offset ) : IEnumerable
GetImmutableText ( ) : Mono.TextEditor.Utils.ImmutableText
GetImmutableText ( int offset, int count ) : Mono.TextEditor.Utils.ImmutableText
GetLine ( int lineNumber ) : Mono.TextEditor.DocumentLine
GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
GetLineCount ( Mono.TextEditor.FoldSegment segment ) : int
GetLineIndent ( Mono.TextEditor.DocumentLine segment ) : string
GetLineIndent ( int lineNumber ) : string
GetLineState ( Mono.TextEditor.DocumentLine line ) : LineState
GetLineText ( int line ) : string

Gets the line text without the delimiter.

GetLineText ( int line, bool includeDelimiter ) : string
GetLinesBetween ( int startLine, int endLine ) : IEnumerable
GetLinesReverseStartingAt ( int startLine ) : IEnumerable
GetLinesStartingAt ( int startLine ) : IEnumerable
GetMatchingBracketOffset ( System worker, int offset ) : int
GetMatchingBracketOffset ( int offset ) : int
GetOffset ( ICSharpCode location ) : int
GetStartFoldings ( Mono.TextEditor.DocumentLine line ) : IEnumerable
GetStartFoldings ( int lineNumber ) : IEnumerable
GetStartFoldings ( int offset, int length ) : IEnumerable
GetText ( ICSharpCode segment ) : string
GetTextAt ( DocumentRegion region ) : string
GetTextAt ( TextSegment segment ) : string
GetTextAt ( int offset, int count ) : string
GetTextBetween ( Mono.TextEditor.DocumentLocation start, Mono.TextEditor.DocumentLocation end ) : string
GetTextBetween ( int startOffset, int endOffset ) : string
GetTextBetween ( int startLine, int startColumn, int endLine, int endColumn ) : string
GetTextSegmentMarkersAt ( Mono.TextEditor.DocumentLine line ) : IEnumerable
GetTextSegmentMarkersAt ( TextSegment segment ) : IEnumerable
GetTextSegmentMarkersAt ( int offset ) : IEnumerable
IndexOf ( char c, int startIndex, int count ) : int

Gets the index of the first occurrence of the character in the specified array.

IndexOf ( string searchText, int startIndex, int count, StringComparison comparisonType ) : int

Gets the index of the first occurrence of the specified search text in this text source.

IndexOfAny ( char anyOf, int startIndex, int count ) : int

Gets the index of the first occurrence of any character in the specified array.

InformLoadComplete ( ) : void

Informs the document when the content is loaded. All outstanding actions are executed.

Insert ( int offset, string text, ICSharpCode anchorMovementType = AnchorMovementType.Default ) : void
IsBracket ( char ch ) : bool
IsEmptyLine ( DocumentLine line ) : bool
IsWholeWordAt ( int offset, int length ) : bool
IsWordSeparator ( char ch ) : bool
LastIndexOf ( char c, int startIndex, int count ) : int

Gets the index of the last occurrence of the specified character in this text source.

The search proceeds backwards from (startIndex+count) to startIndex. This is different than the meaning of the parameters on string.LastIndexOf!

LastIndexOf ( string searchText, int startIndex, int count, StringComparison comparisonType ) : int

Gets the index of the last occurrence of the specified search text in this text source.

The search proceeds backwards from (startIndex+count) to startIndex. This is different than the meaning of the parameters on string.LastIndexOf!

LocationToOffset ( DocumentLocation location ) : int
LocationToOffset ( int line, int column ) : int
MergeUndoOperations ( int number ) : void
OffsetToLineNumber ( int offset ) : int
OffsetToLocation ( int offset ) : DocumentLocation
OpenUndoGroup ( ) : IDisposable
OpenUndoGroup ( OperationType operationType ) : IDisposable
OptimizeTypedUndo ( ) : void
OrderTextSegmentMarkersByInsertion ( IEnumerable enumerable ) : IEnumerable
Redo ( ) : void
RegisterVirtualTextMarker ( int lineNumber, IExtendingTextLineMarker marker ) : void
Remove ( TextSegment segment ) : void
Remove ( int offset, int count ) : void
RemoveMarker ( TextSegmentMarker marker ) : bool

Removes a marker from the document.

RemoveMarker ( DocumentLine line, Type type ) : void
RemoveMarker ( DocumentLine line, Type type, bool updateLine ) : void
RemoveMarker ( TextLineMarker marker ) : void
RemoveMarker ( TextLineMarker marker, bool updateLine ) : void
RemoveMarker ( int lineNumber, Type type ) : void
RemoveTrailingWhitespaces ( TextEditorData data, DocumentLine line ) : void
Replace ( int offset, int count, string value ) : void
Replace ( int offset, int count, string value, ICSharpCode anchorMovementType = AnchorMovementType.Default ) : void
RequestUpdate ( DocumentUpdateRequest request ) : void
RollbackTo ( ICSharpCode version ) : void
RunWhenLoaded ( Action action ) : void

Performs an action when the content is loaded.

SetNotDirtyState ( ) : void

Marks the document not dirty at this point (should be called after save).

StackUndoToDepth ( int depth ) : void
TextDocument ( ) : System
TextDocument ( string text ) : System
UnRegisterVirtualTextMarker ( IExtendingTextLineMarker marker ) : void

un register virtual text marker.

Undo ( ) : void
UpdateFoldSegments ( List newSegments, bool startTask = false, bool useApplicationInvoke = false, CancellationToken masterToken = default(CancellationToken) ) : void
WaitForFoldUpdateFinished ( ) : void

Protected Methods

Method Description
OnBeforeUndoOperation ( EventArgs e ) : void
OnBeginUndo ( ) : void
OnEndUndo ( UndoOperationEventArgs e ) : void
OnFileNameChanged ( EventArgs e ) : void
OnMarkerAdded ( TextMarkerEvent e ) : void
OnMarkerRemoved ( TextMarkerEvent e ) : void
OnMimeTypeChanged ( EventArgs e ) : void
OnRedone ( UndoOperationEventArgs e ) : void
OnSyntaxModeChanged ( SyntaxModeChangeEventArgs e ) : void
OnTextReplaced ( DocumentChangeEventArgs args ) : void
OnTextReplacing ( DocumentChangeEventArgs args ) : void
OnTextSet ( EventArgs e ) : void
OnUndone ( UndoOperationEventArgs e ) : void
TextDocument ( ImmutableText buffer, ILineSplitter splitter ) : System

Private Methods

Method Description
BeginAtomicUndo ( OperationType operationType = OperationType.Undefined ) : void
CompareMarkers ( Mono.TextEditor.TextLineMarker left, Mono.TextEditor.TextLineMarker right ) : int
EndAtomicUndo ( ) : void
GetDiffCodes ( int &codeCounter, int>.Dictionary codeDictionary, bool includeEol ) : int[]
HandleFoldSegmentTreetreeNodeRemoved ( object sender, RedBlackTree e ) : void
HandleSplitterLineSegmentTreeLineRemoved ( object sender, Mono.TextEditor.LineEventArgs e ) : void
ICSharpCode ( int offset ) : ICSharpCode.NRefactory.TextLocation
ICSharpCode ( ) : ICSharpCode.NRefactory.Editor.IDocument
ICSharpCode ( int lineNumber ) : ICSharpCode.NRefactory.Editor.IDocumentLine
ICSharpCode ( int offset ) : ICSharpCode.NRefactory.Editor.ITextAnchor
ICSharpCode ( ) : ICSharpCode.NRefactory.Editor.ITextSource
ICSharpCode ( int line, int column ) : int
ICSharpCode ( int offset, int length ) : string
ICSharpCode ( ) : void
ICSharpCode ( System writer ) : void
ICSharpCode ( System writer, int offset, int length ) : void
ICSharpCode ( int offset, ITextSource text ) : void
ICSharpCode ( int offset, ITextSource text, AnchorMovementType anchorMovementType ) : void
ICSharpCode ( int offset, int count, ITextSource text ) : void
ICSharpCode ( int offset, string text ) : void
ICSharpCode ( int offset, string text, AnchorMovementType anchorMovementType ) : void
IServiceProvider ( Type serviceType ) : object
InformFoldChanged ( FoldSegmentEventArgs args ) : void
InformFoldTreeUpdated ( ) : void
InterruptFoldWorker ( ) : void
RemoveFolding ( FoldSegment folding ) : void
SearchMatchingBracketBackward ( System worker, int offset, int bracket ) : int
SearchMatchingBracketForward ( System worker, int offset, int bracket ) : int
UpdateFoldSegmentWorker ( List newSegments, bool &update, CancellationToken token = default(CancellationToken) ) : HashSet

Updates the fold segments in a background worker thread. Don't call this method outside of a background worker. Use UpdateFoldSegments instead.

Method Details

AddMarker() public method

public AddMarker ( Mono.TextEditor.DocumentLine line, Mono.TextEditor.TextLineMarker marker ) : void
line Mono.TextEditor.DocumentLine
marker Mono.TextEditor.TextLineMarker
return void

AddMarker() public method

public AddMarker ( Mono.TextEditor.DocumentLine line, Mono.TextEditor.TextLineMarker marker, bool commitUpdate ) : void
line Mono.TextEditor.DocumentLine
marker Mono.TextEditor.TextLineMarker
commitUpdate bool
return void

AddMarker() public method

public AddMarker ( Mono.TextEditor.TextSegmentMarker marker ) : void
marker Mono.TextEditor.TextSegmentMarker
return void

AddMarker() public method

public AddMarker ( int lineNumber, Mono.TextEditor.TextLineMarker marker ) : void
lineNumber int
marker Mono.TextEditor.TextLineMarker
return void

ClearFoldSegments() public method

public ClearFoldSegments ( ) : void
return void

ClearUndoBuffer() public method

public ClearUndoBuffer ( ) : void
return void

CommitDocumentUpdate() public method

public CommitDocumentUpdate ( ) : void
return void

CommitLineUpdate() public method

public CommitLineUpdate ( Mono.TextEditor.DocumentLine line ) : void
line Mono.TextEditor.DocumentLine
return void

CommitLineUpdate() public method

public CommitLineUpdate ( int line ) : void
line int
return void

CommitMultipleLineUpdate() public method

public CommitMultipleLineUpdate ( int start, int end ) : void
start int
end int
return void

CommitUpdateAll() public method

public CommitUpdateAll ( ) : void
return void

Contains() public method

public Contains ( TextSegment segment ) : bool
segment TextSegment
return bool

Contains() public method

public Contains ( int offset ) : bool
offset int
return bool

CopyTo() public method

public CopyTo ( int sourceIndex, char destination, int destinationIndex, int count ) : void
sourceIndex int
destination char
destinationIndex int
count int
return void

CreateDocumentSnapshot() public method

public CreateDocumentSnapshot ( ) : TextDocument
return TextDocument

CreateImmutableDocument() public static method

public static CreateImmutableDocument ( string text, bool suppressHighlighting = true ) : TextDocument
text string
suppressHighlighting bool
return TextDocument

CreateReader() public method

public CreateReader ( ) : System.IO.TextReader
return System.IO.TextReader

CreateReader() public method

public CreateReader ( int offset, int length ) : System.IO.TextReader
offset int
length int
return System.IO.TextReader

CreateSnapshot() public method

public CreateSnapshot ( int offset, int length ) : ICSharpCode.NRefactory.Editor.ITextSource
offset int
length int
return ICSharpCode.NRefactory.Editor.ITextSource

Diff() public method

public Diff ( TextDocument changedDocument, bool includeEol = true ) : IEnumerable
changedDocument TextDocument
includeEol bool
return IEnumerable

EnsureOffsetIsUnfolded() public method

public EnsureOffsetIsUnfolded ( int offset ) : void
offset int
return void

EnsureSegmentIsUnfolded() public method

public EnsureSegmentIsUnfolded ( int offset, int length ) : void
offset int
length int
return void

GetCharAt() public method

public GetCharAt ( Mono.TextEditor.DocumentLocation location ) : char
location Mono.TextEditor.DocumentLocation
return char

GetCharAt() public method

public GetCharAt ( int offset ) : char
offset int
return char

GetCharAt() public method

public GetCharAt ( int line, int column ) : char
line int
column int
return char

GetCharacterClass() public static method

public static GetCharacterClass ( char ch ) : CharacterClass
ch char
return CharacterClass

GetCurrentUndoDepth() public method

public GetCurrentUndoDepth ( ) : int
return int

GetEndFoldings() public method

public GetEndFoldings ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
return IEnumerable

GetEndFoldings() public method

public GetEndFoldings ( int lineNumber ) : IEnumerable
lineNumber int
return IEnumerable

GetEndFoldings() public method

public GetEndFoldings ( int offset, int length ) : IEnumerable
offset int
length int
return IEnumerable

GetExtendingTextMarker() public method

public GetExtendingTextMarker ( int lineNumber ) : IExtendingTextLineMarker
lineNumber int
return IExtendingTextLineMarker

GetFoldingContaining() public method

public GetFoldingContaining ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
return IEnumerable

GetFoldingContaining() public method

public GetFoldingContaining ( int lineNumber ) : IEnumerable
lineNumber int
return IEnumerable

GetFoldingContaining() public method

public GetFoldingContaining ( int offset, int length ) : IEnumerable
offset int
length int
return IEnumerable

GetFoldingsFromOffset() public method

public GetFoldingsFromOffset ( int offset ) : IEnumerable
offset int
return IEnumerable

GetImmutableText() public method

public GetImmutableText ( ) : Mono.TextEditor.Utils.ImmutableText
return Mono.TextEditor.Utils.ImmutableText

GetImmutableText() public method

public GetImmutableText ( int offset, int count ) : Mono.TextEditor.Utils.ImmutableText
offset int
count int
return Mono.TextEditor.Utils.ImmutableText

GetLine() public method

public GetLine ( int lineNumber ) : Mono.TextEditor.DocumentLine
lineNumber int
return Mono.TextEditor.DocumentLine

GetLineByOffset() public method

public GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
offset int
return Mono.TextEditor.DocumentLine

GetLineCount() public method

public GetLineCount ( Mono.TextEditor.FoldSegment segment ) : int
segment Mono.TextEditor.FoldSegment
return int

GetLineIndent() public method

public GetLineIndent ( Mono.TextEditor.DocumentLine segment ) : string
segment Mono.TextEditor.DocumentLine
return string

GetLineIndent() public method

public GetLineIndent ( int lineNumber ) : string
lineNumber int
return string

GetLineState() public method

public GetLineState ( Mono.TextEditor.DocumentLine line ) : LineState
line Mono.TextEditor.DocumentLine
return LineState

GetLineText() public method

Gets the line text without the delimiter.
public GetLineText ( int line ) : string
line int /// The line number. ///
return string

GetLineText() public method

public GetLineText ( int line, bool includeDelimiter ) : string
line int
includeDelimiter bool
return string

GetLinesBetween() public method

public GetLinesBetween ( int startLine, int endLine ) : IEnumerable
startLine int
endLine int
return IEnumerable

GetLinesReverseStartingAt() public method

public GetLinesReverseStartingAt ( int startLine ) : IEnumerable
startLine int
return IEnumerable

GetLinesStartingAt() public method

public GetLinesStartingAt ( int startLine ) : IEnumerable
startLine int
return IEnumerable

GetMatchingBracketOffset() public method

public GetMatchingBracketOffset ( System worker, int offset ) : int
worker System
offset int
return int

GetMatchingBracketOffset() public method

public GetMatchingBracketOffset ( int offset ) : int
offset int
return int

GetOffset() public method

public GetOffset ( ICSharpCode location ) : int
location ICSharpCode
return int

GetStartFoldings() public method

public GetStartFoldings ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
return IEnumerable

GetStartFoldings() public method

public GetStartFoldings ( int lineNumber ) : IEnumerable
lineNumber int
return IEnumerable

GetStartFoldings() public method

public GetStartFoldings ( int offset, int length ) : IEnumerable
offset int
length int
return IEnumerable

GetText() public method

public GetText ( ICSharpCode segment ) : string
segment ICSharpCode
return string

GetTextAt() public method

public GetTextAt ( DocumentRegion region ) : string
region DocumentRegion
return string

GetTextAt() public method

public GetTextAt ( TextSegment segment ) : string
segment TextSegment
return string

GetTextAt() public method

public GetTextAt ( int offset, int count ) : string
offset int
count int
return string

GetTextBetween() public method

public GetTextBetween ( Mono.TextEditor.DocumentLocation start, Mono.TextEditor.DocumentLocation end ) : string
start Mono.TextEditor.DocumentLocation
end Mono.TextEditor.DocumentLocation
return string

GetTextBetween() public method

public GetTextBetween ( int startOffset, int endOffset ) : string
startOffset int
endOffset int
return string

GetTextBetween() public method

public GetTextBetween ( int startLine, int startColumn, int endLine, int endColumn ) : string
startLine int
startColumn int
endLine int
endColumn int
return string

GetTextSegmentMarkersAt() public method

public GetTextSegmentMarkersAt ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
return IEnumerable

GetTextSegmentMarkersAt() public method

public GetTextSegmentMarkersAt ( TextSegment segment ) : IEnumerable
segment TextSegment
return IEnumerable

GetTextSegmentMarkersAt() public method

public GetTextSegmentMarkersAt ( int offset ) : IEnumerable
offset int
return IEnumerable

IndexOf() public method

Gets the index of the first occurrence of the character in the specified array.
public IndexOf ( char c, int startIndex, int count ) : int
c char Character to search for
startIndex int Start index of the area to search.
count int Length of the area to search.
return int

IndexOf() public method

Gets the index of the first occurrence of the specified search text in this text source.
public IndexOf ( string searchText, int startIndex, int count, StringComparison comparisonType ) : int
searchText string The search text
startIndex int Start index of the area to search.
count int Length of the area to search.
comparisonType StringComparison String comparison to use.
return int

IndexOfAny() public method

Gets the index of the first occurrence of any character in the specified array.
public IndexOfAny ( char anyOf, int startIndex, int count ) : int
anyOf char Characters to search for
startIndex int Start index of the area to search.
count int Length of the area to search.
return int

InformLoadComplete() public method

Informs the document when the content is loaded. All outstanding actions are executed.
public InformLoadComplete ( ) : void
return void

Insert() public method

public Insert ( int offset, string text, ICSharpCode anchorMovementType = AnchorMovementType.Default ) : void
offset int
text string
anchorMovementType ICSharpCode
return void

IsBracket() public static method

public static IsBracket ( char ch ) : bool
ch char
return bool

IsEmptyLine() public method

public IsEmptyLine ( DocumentLine line ) : bool
line DocumentLine
return bool

IsWholeWordAt() public method

public IsWholeWordAt ( int offset, int length ) : bool
offset int
length int
return bool

IsWordSeparator() public static method

public static IsWordSeparator ( char ch ) : bool
ch char
return bool

LastIndexOf() public method

Gets the index of the last occurrence of the specified character in this text source.
The search proceeds backwards from (startIndex+count) to startIndex. This is different than the meaning of the parameters on string.LastIndexOf!
public LastIndexOf ( char c, int startIndex, int count ) : int
c char The search character
startIndex int Start index of the area to search.
count int Length of the area to search.
return int

LastIndexOf() public method

Gets the index of the last occurrence of the specified search text in this text source.
The search proceeds backwards from (startIndex+count) to startIndex. This is different than the meaning of the parameters on string.LastIndexOf!
public LastIndexOf ( string searchText, int startIndex, int count, StringComparison comparisonType ) : int
searchText string The search text
startIndex int Start index of the area to search.
count int Length of the area to search.
comparisonType StringComparison String comparison to use.
return int

LocationToOffset() public method

public LocationToOffset ( DocumentLocation location ) : int
location DocumentLocation
return int

LocationToOffset() public method

public LocationToOffset ( int line, int column ) : int
line int
column int
return int

MergeUndoOperations() public method

public MergeUndoOperations ( int number ) : void
number int
return void

OffsetToLineNumber() public method

public OffsetToLineNumber ( int offset ) : int
offset int
return int

OffsetToLocation() public method

public OffsetToLocation ( int offset ) : DocumentLocation
offset int
return DocumentLocation

OnBeforeUndoOperation() protected method

protected OnBeforeUndoOperation ( EventArgs e ) : void
e EventArgs
return void

OnBeginUndo() protected method

protected OnBeginUndo ( ) : void
return void

OnEndUndo() protected method

protected OnEndUndo ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
return void

OnFileNameChanged() protected method

protected OnFileNameChanged ( EventArgs e ) : void
e EventArgs
return void

OnMarkerAdded() protected method

protected OnMarkerAdded ( TextMarkerEvent e ) : void
e TextMarkerEvent
return void

OnMarkerRemoved() protected method

protected OnMarkerRemoved ( TextMarkerEvent e ) : void
e TextMarkerEvent
return void

OnMimeTypeChanged() protected method

protected OnMimeTypeChanged ( EventArgs e ) : void
e EventArgs
return void

OnRedone() protected method

protected OnRedone ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
return void

OnSyntaxModeChanged() protected method

protected OnSyntaxModeChanged ( SyntaxModeChangeEventArgs e ) : void
e SyntaxModeChangeEventArgs
return void

OnTextReplaced() protected method

protected OnTextReplaced ( DocumentChangeEventArgs args ) : void
args DocumentChangeEventArgs
return void

OnTextReplacing() protected method

protected OnTextReplacing ( DocumentChangeEventArgs args ) : void
args DocumentChangeEventArgs
return void

OnTextSet() protected method

protected OnTextSet ( EventArgs e ) : void
e EventArgs
return void

OnUndone() protected method

protected OnUndone ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
return void

OpenUndoGroup() public method

public OpenUndoGroup ( ) : IDisposable
return IDisposable

OpenUndoGroup() public method

public OpenUndoGroup ( OperationType operationType ) : IDisposable
operationType OperationType
return IDisposable

OptimizeTypedUndo() public method

public OptimizeTypedUndo ( ) : void
return void

OrderTextSegmentMarkersByInsertion() public static method

public static OrderTextSegmentMarkersByInsertion ( IEnumerable enumerable ) : IEnumerable
enumerable IEnumerable
return IEnumerable

Redo() public method

public Redo ( ) : void
return void

RegisterVirtualTextMarker() public method

public RegisterVirtualTextMarker ( int lineNumber, IExtendingTextLineMarker marker ) : void
lineNumber int
marker IExtendingTextLineMarker
return void

Remove() public method

public Remove ( TextSegment segment ) : void
segment TextSegment
return void

Remove() public method

public Remove ( int offset, int count ) : void
offset int
count int
return void

RemoveMarker() public method

Removes a marker from the document.
public RemoveMarker ( TextSegmentMarker marker ) : bool
marker TextSegmentMarker Marker.
return bool

RemoveMarker() public method

public RemoveMarker ( DocumentLine line, Type type ) : void
line DocumentLine
type Type
return void

RemoveMarker() public method

public RemoveMarker ( DocumentLine line, Type type, bool updateLine ) : void
line DocumentLine
type Type
updateLine bool
return void

RemoveMarker() public method

public RemoveMarker ( TextLineMarker marker ) : void
marker TextLineMarker
return void

RemoveMarker() public method

public RemoveMarker ( TextLineMarker marker, bool updateLine ) : void
marker TextLineMarker
updateLine bool
return void

RemoveMarker() public method

public RemoveMarker ( int lineNumber, Type type ) : void
lineNumber int
type Type
return void

RemoveTrailingWhitespaces() public static method

public static RemoveTrailingWhitespaces ( TextEditorData data, DocumentLine line ) : void
data TextEditorData
line DocumentLine
return void

Replace() public method

public Replace ( int offset, int count, string value ) : void
offset int
count int
value string
return void

Replace() public method

public Replace ( int offset, int count, string value, ICSharpCode anchorMovementType = AnchorMovementType.Default ) : void
offset int
count int
value string
anchorMovementType ICSharpCode
return void

RequestUpdate() public method

public RequestUpdate ( DocumentUpdateRequest request ) : void
request DocumentUpdateRequest
return void

RollbackTo() public method

public RollbackTo ( ICSharpCode version ) : void
version ICSharpCode
return void

RunWhenLoaded() public method

Performs an action when the content is loaded.
public RunWhenLoaded ( Action action ) : void
action Action /// The action to run. ///
return void

SetNotDirtyState() public method

Marks the document not dirty at this point (should be called after save).
public SetNotDirtyState ( ) : void
return void

StackUndoToDepth() public method

public StackUndoToDepth ( int depth ) : void
depth int
return void

TextDocument() public method

public TextDocument ( ) : System
return System

TextDocument() protected method

protected TextDocument ( ImmutableText buffer, ILineSplitter splitter ) : System
buffer ImmutableText
splitter ILineSplitter
return System

TextDocument() public method

public TextDocument ( string text ) : System
text string
return System

UnRegisterVirtualTextMarker() public method

un register virtual text marker.
public UnRegisterVirtualTextMarker ( IExtendingTextLineMarker marker ) : void
marker IExtendingTextLineMarker /// marker. ///
return void

Undo() public method

public Undo ( ) : void
return void

UpdateFoldSegments() public method

public UpdateFoldSegments ( List newSegments, bool startTask = false, bool useApplicationInvoke = false, CancellationToken masterToken = default(CancellationToken) ) : void
newSegments List
startTask bool
useApplicationInvoke bool
masterToken CancellationToken
return void

WaitForFoldUpdateFinished() public method

public WaitForFoldUpdateFinished ( ) : void
return void

Property Details

diffTracker public property

public DiffTracker diffTracker
return DiffTracker