IViewClassifierAggregatorService Interface

A service that returns an IClassifier that aggregates and normalizes all the classifiers for all the text buffers in the buffer graph of a particular ITextView.

Namespace:  Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Public Interface IViewClassifierAggregatorService
public interface IViewClassifierAggregatorService
public interface class IViewClassifierAggregatorService
type IViewClassifierAggregatorService =  interface end
public interface IViewClassifierAggregatorService

The IViewClassifierAggregatorService type exposes the following members.

Methods

  Name Description
Public method GetClassifier Gets the cached IClassifier for the given ITextView.

Top

Remarks

This is a MEF component part, and should be imported as follows:

[Import] 
IViewClassifierAggregatorService aggregator = null;

The normalized classifications produced by this aggregator are sorted and do not overlap. If a span of text has multiple classifications, based on the original classifier contributions, then in the normalized classification it has a transient classification IClassificationTypeRegistryService that corresponds to all of the original classifications

Classifier aggregators are cached for each combination of ITextBuffer and ITextView.

For more information about classification, see the section "Extending Classification Types and Classification Formats" in Editor Extension Points.

See Also

Reference

Microsoft.VisualStudio.Text.Classification Namespace