C# Class Microsoft.Languages.Editor.Outline.OutlineRegionBuilder

Base outline (collapsible regions) builder. Performs region building in a background thread that starts on idle so it does not run continuously as user is typing or otherwise constantly changing the underlying text buffer content.
Inheritance: IDisposable
Exibir arquivo Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
BuildRegions ( OutlineRegionCollection newRegions ) : bool
Dispose ( ) : void

Protected Methods

Method Description
CompareRegions ( OutlineRegionCollection newRegions, OutlineRegionCollection oldRegions, int upperBound ) : ITextRange
Dispose ( bool disposing ) : void
MainThreadAction ( object backgroundProcessingResult ) : void
OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void
OutlineRegionBuilder ( ITextBuffer textBuffer, IEditorShell editorShell ) : System
TaskAction ( ) : object

Method Details

BuildRegions() public abstract method

public abstract BuildRegions ( OutlineRegionCollection newRegions ) : bool
newRegions OutlineRegionCollection
return bool

CompareRegions() protected method

protected CompareRegions ( OutlineRegionCollection newRegions, OutlineRegionCollection oldRegions, int upperBound ) : ITextRange
newRegions OutlineRegionCollection
oldRegions OutlineRegionCollection
upperBound int
return ITextRange

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MainThreadAction() protected method

protected MainThreadAction ( object backgroundProcessingResult ) : void
backgroundProcessingResult object
return void

OnTextBufferChanged() protected method

protected OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void
sender object
e TextContentChangedEventArgs
return void

OutlineRegionBuilder() protected method

protected OutlineRegionBuilder ( ITextBuffer textBuffer, IEditorShell editorShell ) : System
textBuffer ITextBuffer
editorShell IEditorShell
return System

TaskAction() protected method

protected TaskAction ( ) : object
return object