C# Class AvalonStudio.TextEditor.Document.LineManager

Exibir arquivo Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method Description
ChangeComplete ( DocumentChangeEventArgs e ) : void
Insert ( int offset, ITextSource text ) : void
LineManager ( DocumentLineTree documentLineTree, TextDocument document ) : System.Collections.Generic
Rebuild ( ) : void
Remove ( int offset, int length ) : void

Gets the list of lines deleted since the last RetrieveChangedLines() call. The returned list is unsorted.

Gets the list of lines changed since the last RetrieveChangedLines() call. The returned list is sorted by line number and does not contain deleted lines.

Gets the list of lines changed since the last RetrieveDeletedOrChangedLines() call. The returned list is not sorted.

Private Methods

Method Description
InsertLineAfter ( DocumentLine line, int length ) : DocumentLine
RemoveLine ( DocumentLine lineToRemove ) : void
SetLineLength ( DocumentLine line, int newTotalLength ) : DocumentLine

Sets the total line length and checks the delimiter. This method can cause line to be deleted when it contains a single '\n' character and the previous line ends with '\r'.

UpdateListOfLineTrackers ( ) : void

Method Details

ChangeComplete() public method

public ChangeComplete ( DocumentChangeEventArgs e ) : void
e DocumentChangeEventArgs
return void

Insert() public method

public Insert ( int offset, ITextSource text ) : void
offset int
text ITextSource
return void

LineManager() public method

public LineManager ( DocumentLineTree documentLineTree, TextDocument document ) : System.Collections.Generic
documentLineTree DocumentLineTree
document TextDocument
return System.Collections.Generic

Rebuild() public method

public Rebuild ( ) : void
return void

Remove() public method

Gets the list of lines deleted since the last RetrieveChangedLines() call. The returned list is unsorted. Gets the list of lines changed since the last RetrieveChangedLines() call. The returned list is sorted by line number and does not contain deleted lines. Gets the list of lines changed since the last RetrieveDeletedOrChangedLines() call. The returned list is not sorted.
public Remove ( int offset, int length ) : void
offset int
length int
return void