C# Класс Microsoft.R.Editor.Validation.Tagger.ErrorTagCollection

Represents collection of HTML validation errors and tasks. Tag collection is a primary source for validation squiggles in the editor as well as source of the corresponding messages for the application task list. Collection is thread safe.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BeginUpdate ( ) : ITextRange

Signals that collection is about to be updated. Must be called before any updates are made to the collection so collection can calculated span of changes in the text buffer.

Clear ( ) : void
EndUpdate ( bool modified ) : void

Signals that collection update has been completed.

ErrorTagCollection ( IEditorTree editorTree ) : System
ItemsInRange ( ITextRange range ) : IReadOnlyList
ReflectTextChange ( int start, int oldLength, int newLength, bool trivialChange ) : void
RemoveTagsForNode ( IAstNode node ) : ITextRange

Removes all tags associated with a given node

ToArray ( ) : EditorErrorTag[]

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

Метод Описание
Add ( EditorErrorTag tag ) : void
OnNewTree ( object sender, EventArgs e ) : void
OnNodesRemoved ( object sender, TreeNodesRemovedEventArgs e ) : void
OnTreeClosing ( object sender, EventArgs e ) : void
OnUpdateCompleted ( object sender, TreeUpdatedEventArgs e ) : void
ProcessPendingNodeRemoval ( ) : void
StoreRemovedNodes ( IAstNode node ) : void

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

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

Signals that collection is about to be updated. Must be called before any updates are made to the collection so collection can calculated span of changes in the text buffer.
public BeginUpdate ( ) : ITextRange
Результат ITextRange

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

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

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

Signals that collection update has been completed.
public EndUpdate ( bool modified ) : void
modified bool True if collection was indeed modified since BeginUpdate was called
Результат void

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

public ErrorTagCollection ( IEditorTree editorTree ) : System
editorTree IEditorTree
Результат System

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

public ItemsInRange ( ITextRange range ) : IReadOnlyList
range ITextRange
Результат IReadOnlyList

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

public ReflectTextChange ( int start, int oldLength, int newLength, bool trivialChange ) : void
start int
oldLength int
newLength int
trivialChange bool
Результат void

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

Removes all tags associated with a given node
public RemoveTagsForNode ( IAstNode node ) : ITextRange
node IAstNode Node in the AST
Результат ITextRange

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

public ToArray ( ) : EditorErrorTag[]
Результат EditorErrorTag[]