C# Class XSharpColorizer.XSharpClassifier

Classifier that classifies all text as an instance of the "XSharpClassifier" classification type.
Inheritance: IClassifier, IDisposable
Mostrar archivo Open project: X-Sharp/XSharpPublic Class Usage Examples

Public Methods

Method Description
GetClassificationSpans ( SnapshotSpan span ) : IList

Gets all the ClassificationSpan objects that intersect with the given range of text.

This method scans the given SnapshotSpan for potential matches for this classification. In this instance, it classifies everything and returns each span as a new ClassificationSpan.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Bw_DoWork ( object sender, DoWorkEventArgs e ) : void
Bw_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
GetColorizer ( ITextBuffer buffer, IClassificationTypeRegistryService registry, ITextDocumentFactoryService factory ) : XSharpClassifier
IDisposable ( ) : void
Parse ( ITextSnapshot snapshot ) : void
XSharpClassifier ( ITextBuffer buffer, IClassificationTypeRegistryService registry, ITextDocumentFactoryService factory ) : System

Initializes a new instance of the XSharpClassifier class.

Method Details

Dispose() protected method

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

GetClassificationSpans() public method

Gets all the ClassificationSpan objects that intersect with the given range of text.
This method scans the given SnapshotSpan for potential matches for this classification. In this instance, it classifies everything and returns each span as a new ClassificationSpan.
public GetClassificationSpans ( SnapshotSpan span ) : IList
span SnapshotSpan The span currently being classified.
return IList