C# Класс AvalonStudio.TextEditor.Document.LineManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ChangeComplete() публичный Метод

public ChangeComplete ( DocumentChangeEventArgs e ) : void
e DocumentChangeEventArgs
Результат void

Insert() публичный Метод

public Insert ( int offset, ITextSource text ) : void
offset int
text ITextSource
Результат void

LineManager() публичный Метод

public LineManager ( DocumentLineTree documentLineTree, TextDocument document ) : System.Collections.Generic
documentLineTree DocumentLineTree
document TextDocument
Результат System.Collections.Generic

Rebuild() публичный Метод

public Rebuild ( ) : void
Результат void

Remove() публичный Метод

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
Результат void