C# Class Mono.TextEditor.TextDocument

Inheritance: AbstractAnnotatable, IBuffer, ICSharpCode.NRefactory.Editor.IDocument
Afficher le fichier Open project: powerumc/monodevelop_korean Class Usage Examples

Méthodes publiques

Свойство Type Description
diffTracker DiffTracker

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddMarker ( Mono.TextEditor.DocumentLine line, Mono.TextEditor.TextLineMarker marker ) : void
line Mono.TextEditor.DocumentLine
marker Mono.TextEditor.TextLineMarker
Résultat void

AddMarker() public méthode

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

AddMarker() public méthode

public AddMarker ( Mono.TextEditor.TextSegmentMarker marker ) : void
marker Mono.TextEditor.TextSegmentMarker
Résultat void

AddMarker() public méthode

public AddMarker ( int lineNumber, Mono.TextEditor.TextLineMarker marker ) : void
lineNumber int
marker Mono.TextEditor.TextLineMarker
Résultat void

ClearFoldSegments() public méthode

public ClearFoldSegments ( ) : void
Résultat void

ClearUndoBuffer() public méthode

public ClearUndoBuffer ( ) : void
Résultat void

CommitDocumentUpdate() public méthode

public CommitDocumentUpdate ( ) : void
Résultat void

CommitLineUpdate() public méthode

public CommitLineUpdate ( Mono.TextEditor.DocumentLine line ) : void
line Mono.TextEditor.DocumentLine
Résultat void

CommitLineUpdate() public méthode

public CommitLineUpdate ( int line ) : void
line int
Résultat void

CommitMultipleLineUpdate() public méthode

public CommitMultipleLineUpdate ( int start, int end ) : void
start int
end int
Résultat void

CommitUpdateAll() public méthode

public CommitUpdateAll ( ) : void
Résultat void

Contains() public méthode

public Contains ( TextSegment segment ) : bool
segment TextSegment
Résultat bool

Contains() public méthode

public Contains ( int offset ) : bool
offset int
Résultat bool

CopyTo() public méthode

public CopyTo ( int sourceIndex, char destination, int destinationIndex, int count ) : void
sourceIndex int
destination char
destinationIndex int
count int
Résultat void

CreateDocumentSnapshot() public méthode

public CreateDocumentSnapshot ( ) : TextDocument
Résultat TextDocument

CreateImmutableDocument() public static méthode

public static CreateImmutableDocument ( string text, bool suppressHighlighting = true ) : TextDocument
text string
suppressHighlighting bool
Résultat TextDocument

CreateReader() public méthode

public CreateReader ( ) : System.IO.TextReader
Résultat System.IO.TextReader

CreateReader() public méthode

public CreateReader ( int offset, int length ) : System.IO.TextReader
offset int
length int
Résultat System.IO.TextReader

CreateSnapshot() public méthode

public CreateSnapshot ( int offset, int length ) : ICSharpCode.NRefactory.Editor.ITextSource
offset int
length int
Résultat ICSharpCode.NRefactory.Editor.ITextSource

Diff() public méthode

public Diff ( TextDocument changedDocument, bool includeEol = true ) : IEnumerable
changedDocument TextDocument
includeEol bool
Résultat IEnumerable

EnsureOffsetIsUnfolded() public méthode

public EnsureOffsetIsUnfolded ( int offset ) : void
offset int
Résultat void

EnsureSegmentIsUnfolded() public méthode

public EnsureSegmentIsUnfolded ( int offset, int length ) : void
offset int
length int
Résultat void

GetCharAt() public méthode

public GetCharAt ( Mono.TextEditor.DocumentLocation location ) : char
location Mono.TextEditor.DocumentLocation
Résultat char

GetCharAt() public méthode

public GetCharAt ( int offset ) : char
offset int
Résultat char

GetCharAt() public méthode

public GetCharAt ( int line, int column ) : char
line int
column int
Résultat char

GetCharacterClass() public static méthode

public static GetCharacterClass ( char ch ) : CharacterClass
ch char
Résultat CharacterClass

GetCurrentUndoDepth() public méthode

public GetCurrentUndoDepth ( ) : int
Résultat int

GetEndFoldings() public méthode

public GetEndFoldings ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
Résultat IEnumerable

GetEndFoldings() public méthode

public GetEndFoldings ( int lineNumber ) : IEnumerable
lineNumber int
Résultat IEnumerable

GetEndFoldings() public méthode

public GetEndFoldings ( int offset, int length ) : IEnumerable
offset int
length int
Résultat IEnumerable

GetExtendingTextMarker() public méthode

public GetExtendingTextMarker ( int lineNumber ) : IExtendingTextLineMarker
lineNumber int
Résultat IExtendingTextLineMarker

GetFoldingContaining() public méthode

public GetFoldingContaining ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
Résultat IEnumerable

GetFoldingContaining() public méthode

public GetFoldingContaining ( int lineNumber ) : IEnumerable
lineNumber int
Résultat IEnumerable

GetFoldingContaining() public méthode

public GetFoldingContaining ( int offset, int length ) : IEnumerable
offset int
length int
Résultat IEnumerable

GetFoldingsFromOffset() public méthode

public GetFoldingsFromOffset ( int offset ) : IEnumerable
offset int
Résultat IEnumerable

GetImmutableText() public méthode

public GetImmutableText ( ) : Mono.TextEditor.Utils.ImmutableText
Résultat Mono.TextEditor.Utils.ImmutableText

GetImmutableText() public méthode

public GetImmutableText ( int offset, int count ) : Mono.TextEditor.Utils.ImmutableText
offset int
count int
Résultat Mono.TextEditor.Utils.ImmutableText

GetLine() public méthode

public GetLine ( int lineNumber ) : Mono.TextEditor.DocumentLine
lineNumber int
Résultat Mono.TextEditor.DocumentLine

GetLineByOffset() public méthode

public GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
offset int
Résultat Mono.TextEditor.DocumentLine

GetLineCount() public méthode

public GetLineCount ( Mono.TextEditor.FoldSegment segment ) : int
segment Mono.TextEditor.FoldSegment
Résultat int

GetLineIndent() public méthode

public GetLineIndent ( Mono.TextEditor.DocumentLine segment ) : string
segment Mono.TextEditor.DocumentLine
Résultat string

GetLineIndent() public méthode

public GetLineIndent ( int lineNumber ) : string
lineNumber int
Résultat string

GetLineState() public méthode

public GetLineState ( Mono.TextEditor.DocumentLine line ) : LineState
line Mono.TextEditor.DocumentLine
Résultat LineState

GetLineText() public méthode

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

GetLineText() public méthode

public GetLineText ( int line, bool includeDelimiter ) : string
line int
includeDelimiter bool
Résultat string

GetLinesBetween() public méthode

public GetLinesBetween ( int startLine, int endLine ) : IEnumerable
startLine int
endLine int
Résultat IEnumerable

GetLinesReverseStartingAt() public méthode

public GetLinesReverseStartingAt ( int startLine ) : IEnumerable
startLine int
Résultat IEnumerable

GetLinesStartingAt() public méthode

public GetLinesStartingAt ( int startLine ) : IEnumerable
startLine int
Résultat IEnumerable

GetMatchingBracketOffset() public méthode

public GetMatchingBracketOffset ( System worker, int offset ) : int
worker System
offset int
Résultat int

GetMatchingBracketOffset() public méthode

public GetMatchingBracketOffset ( int offset ) : int
offset int
Résultat int

GetOffset() public méthode

public GetOffset ( ICSharpCode location ) : int
location ICSharpCode
Résultat int

GetStartFoldings() public méthode

public GetStartFoldings ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
Résultat IEnumerable

GetStartFoldings() public méthode

public GetStartFoldings ( int lineNumber ) : IEnumerable
lineNumber int
Résultat IEnumerable

GetStartFoldings() public méthode

public GetStartFoldings ( int offset, int length ) : IEnumerable
offset int
length int
Résultat IEnumerable

GetText() public méthode

public GetText ( ICSharpCode segment ) : string
segment ICSharpCode
Résultat string

GetTextAt() public méthode

public GetTextAt ( DocumentRegion region ) : string
region DocumentRegion
Résultat string

GetTextAt() public méthode

public GetTextAt ( TextSegment segment ) : string
segment TextSegment
Résultat string

GetTextAt() public méthode

public GetTextAt ( int offset, int count ) : string
offset int
count int
Résultat string

GetTextBetween() public méthode

public GetTextBetween ( Mono.TextEditor.DocumentLocation start, Mono.TextEditor.DocumentLocation end ) : string
start Mono.TextEditor.DocumentLocation
end Mono.TextEditor.DocumentLocation
Résultat string

GetTextBetween() public méthode

public GetTextBetween ( int startOffset, int endOffset ) : string
startOffset int
endOffset int
Résultat string

GetTextBetween() public méthode

public GetTextBetween ( int startLine, int startColumn, int endLine, int endColumn ) : string
startLine int
startColumn int
endLine int
endColumn int
Résultat string

GetTextSegmentMarkersAt() public méthode

public GetTextSegmentMarkersAt ( Mono.TextEditor.DocumentLine line ) : IEnumerable
line Mono.TextEditor.DocumentLine
Résultat IEnumerable

GetTextSegmentMarkersAt() public méthode

public GetTextSegmentMarkersAt ( TextSegment segment ) : IEnumerable
segment TextSegment
Résultat IEnumerable

GetTextSegmentMarkersAt() public méthode

public GetTextSegmentMarkersAt ( int offset ) : IEnumerable
offset int
Résultat IEnumerable

IndexOf() public méthode

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.
Résultat int

IndexOf() public méthode

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.
Résultat int

IndexOfAny() public méthode

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.
Résultat int

InformLoadComplete() public méthode

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

Insert() public méthode

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

IsBracket() public static méthode

public static IsBracket ( char ch ) : bool
ch char
Résultat bool

IsEmptyLine() public méthode

public IsEmptyLine ( DocumentLine line ) : bool
line DocumentLine
Résultat bool

IsWholeWordAt() public méthode

public IsWholeWordAt ( int offset, int length ) : bool
offset int
length int
Résultat bool

IsWordSeparator() public static méthode

public static IsWordSeparator ( char ch ) : bool
ch char
Résultat bool

LastIndexOf() public méthode

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.
Résultat int

LastIndexOf() public méthode

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.
Résultat int

LocationToOffset() public méthode

public LocationToOffset ( DocumentLocation location ) : int
location DocumentLocation
Résultat int

LocationToOffset() public méthode

public LocationToOffset ( int line, int column ) : int
line int
column int
Résultat int

MergeUndoOperations() public méthode

public MergeUndoOperations ( int number ) : void
number int
Résultat void

OffsetToLineNumber() public méthode

public OffsetToLineNumber ( int offset ) : int
offset int
Résultat int

OffsetToLocation() public méthode

public OffsetToLocation ( int offset ) : DocumentLocation
offset int
Résultat DocumentLocation

OnBeforeUndoOperation() protected méthode

protected OnBeforeUndoOperation ( EventArgs e ) : void
e EventArgs
Résultat void

OnBeginUndo() protected méthode

protected OnBeginUndo ( ) : void
Résultat void

OnEndUndo() protected méthode

protected OnEndUndo ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
Résultat void

OnFileNameChanged() protected méthode

protected OnFileNameChanged ( EventArgs e ) : void
e EventArgs
Résultat void

OnMarkerAdded() protected méthode

protected OnMarkerAdded ( TextMarkerEvent e ) : void
e TextMarkerEvent
Résultat void

OnMarkerRemoved() protected méthode

protected OnMarkerRemoved ( TextMarkerEvent e ) : void
e TextMarkerEvent
Résultat void

OnMimeTypeChanged() protected méthode

protected OnMimeTypeChanged ( EventArgs e ) : void
e EventArgs
Résultat void

OnRedone() protected méthode

protected OnRedone ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
Résultat void

OnSyntaxModeChanged() protected méthode

protected OnSyntaxModeChanged ( SyntaxModeChangeEventArgs e ) : void
e SyntaxModeChangeEventArgs
Résultat void

OnTextReplaced() protected méthode

protected OnTextReplaced ( DocumentChangeEventArgs args ) : void
args DocumentChangeEventArgs
Résultat void

OnTextReplacing() protected méthode

protected OnTextReplacing ( DocumentChangeEventArgs args ) : void
args DocumentChangeEventArgs
Résultat void

OnTextSet() protected méthode

protected OnTextSet ( EventArgs e ) : void
e EventArgs
Résultat void

OnUndone() protected méthode

protected OnUndone ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
Résultat void

OpenUndoGroup() public méthode

public OpenUndoGroup ( ) : IDisposable
Résultat IDisposable

OpenUndoGroup() public méthode

public OpenUndoGroup ( OperationType operationType ) : IDisposable
operationType OperationType
Résultat IDisposable

OptimizeTypedUndo() public méthode

public OptimizeTypedUndo ( ) : void
Résultat void

OrderTextSegmentMarkersByInsertion() public static méthode

public static OrderTextSegmentMarkersByInsertion ( IEnumerable enumerable ) : IEnumerable
enumerable IEnumerable
Résultat IEnumerable

Redo() public méthode

public Redo ( ) : void
Résultat void

RegisterVirtualTextMarker() public méthode

public RegisterVirtualTextMarker ( int lineNumber, IExtendingTextLineMarker marker ) : void
lineNumber int
marker IExtendingTextLineMarker
Résultat void

Remove() public méthode

public Remove ( TextSegment segment ) : void
segment TextSegment
Résultat void

Remove() public méthode

public Remove ( int offset, int count ) : void
offset int
count int
Résultat void

RemoveMarker() public méthode

Removes a marker from the document.
public RemoveMarker ( TextSegmentMarker marker ) : bool
marker TextSegmentMarker Marker.
Résultat bool

RemoveMarker() public méthode

public RemoveMarker ( DocumentLine line, Type type ) : void
line DocumentLine
type Type
Résultat void

RemoveMarker() public méthode

public RemoveMarker ( DocumentLine line, Type type, bool updateLine ) : void
line DocumentLine
type Type
updateLine bool
Résultat void

RemoveMarker() public méthode

public RemoveMarker ( TextLineMarker marker ) : void
marker TextLineMarker
Résultat void

RemoveMarker() public méthode

public RemoveMarker ( TextLineMarker marker, bool updateLine ) : void
marker TextLineMarker
updateLine bool
Résultat void

RemoveMarker() public méthode

public RemoveMarker ( int lineNumber, Type type ) : void
lineNumber int
type Type
Résultat void

RemoveTrailingWhitespaces() public static méthode

public static RemoveTrailingWhitespaces ( TextEditorData data, DocumentLine line ) : void
data TextEditorData
line DocumentLine
Résultat void

Replace() public méthode

public Replace ( int offset, int count, string value ) : void
offset int
count int
value string
Résultat void

Replace() public méthode

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

RequestUpdate() public méthode

public RequestUpdate ( DocumentUpdateRequest request ) : void
request DocumentUpdateRequest
Résultat void

RollbackTo() public méthode

public RollbackTo ( ICSharpCode version ) : void
version ICSharpCode
Résultat void

RunWhenLoaded() public méthode

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

SetNotDirtyState() public méthode

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

StackUndoToDepth() public méthode

public StackUndoToDepth ( int depth ) : void
depth int
Résultat void

TextDocument() public méthode

public TextDocument ( ) : System
Résultat System

TextDocument() protected méthode

protected TextDocument ( ImmutableText buffer, ILineSplitter splitter ) : System
buffer ImmutableText
splitter ILineSplitter
Résultat System

TextDocument() public méthode

public TextDocument ( string text ) : System
text string
Résultat System

UnRegisterVirtualTextMarker() public méthode

un register virtual text marker.
public UnRegisterVirtualTextMarker ( IExtendingTextLineMarker marker ) : void
marker IExtendingTextLineMarker /// marker. ///
Résultat void

Undo() public méthode

public Undo ( ) : void
Résultat void

UpdateFoldSegments() public méthode

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

WaitForFoldUpdateFinished() public méthode

public WaitForFoldUpdateFinished ( ) : void
Résultat void

Property Details

diffTracker public_oe property

public DiffTracker diffTracker
Résultat DiffTracker