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.
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
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[]