In This Article

DisplayItemClassificationTypeProvider Class

Represents a provider of IClassificationType objects for the UI display items within a SyntaxEditor.

public class DisplayItemClassificationTypeProvider
Inheritance:
Object Object

Constructors

DisplayItemClassificationTypeProvider()

Initializes a new instance of the DisplayItemClassificationTypeProvider class.

public DisplayItemClassificationTypeProvider()

DisplayItemClassificationTypeProvider(IHighlightingStyleRegistry)

Initializes a new instance of the DisplayItemClassificationTypeProvider class.

public DisplayItemClassificationTypeProvider(IHighlightingStyleRegistry registry)
Parameter Type Description
registry IHighlightingStyleRegistry

The IHighlightingStyleRegistry to use when registering classification types and highlighting styles.

Properties

BreakpointDisabled

Gets the IClassificationType to use for a disabled breakpoint.

public IClassificationType BreakpointDisabled { get; }

Property Value

IClassificationType:

The IClassificationType to use for a disabled breakpoint.

Remarks

Only the border is editable in the default IHighlightingStyle that is registered for this classification type.

BreakpointEnabled

Gets the IClassificationType to use for an enabled breakpoint.

public IClassificationType BreakpointEnabled { get; }

Property Value

IClassificationType:

The IClassificationType to use for an enabled breakpoint.

Remarks

Only the foreground and background are editable in the default IHighlightingStyle that is registered for this classification type.

CodeSnippetDependentField

Gets the IClassificationType to use for a code snippet dependent field.

public IClassificationType CodeSnippetDependentField { get; }

Property Value

IClassificationType:

The IClassificationType to use for a code snippet dependent field.

Remarks

Only the border is editable in the default IHighlightingStyle that is registered for this classification type.

CodeSnippetField

Gets the IClassificationType to use for a code snippet field.

public IClassificationType CodeSnippetField { get; }

Property Value

IClassificationType:

The IClassificationType to use for a code snippet field.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

CollapsedText

Gets the IClassificationType to use for collapsed text.

public IClassificationType CollapsedText { get; }

Property Value

IClassificationType:

The IClassificationType to use for collapsed text.

Remarks

Only the foreground is editable in the default IHighlightingStyle that is registered for this classification type.

CollapsibleRegion

Gets the IClassificationType to use for collapsible regions.

public IClassificationType CollapsibleRegion { get; }

Property Value

IClassificationType:

The IClassificationType to use for collapsible regions.

Remarks

Only the foreground and background are editable in the default IHighlightingStyle that is registered for this classification type.

ColumnGuides

Gets the IClassificationType to use for column guides.

public IClassificationType ColumnGuides { get; }

Property Value

IClassificationType:

The IClassificationType to use for column guides.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

CurrentLine

Gets the IClassificationType to use for a current line highlight.

public IClassificationType CurrentLine { get; }

Property Value

IClassificationType:

The IClassificationType to use for current line highlight.

Remarks

Only the background and border are editable in the default IHighlightingStyle that is registered for this classification type.

CurrentStatement

Gets the IClassificationType to use for a current statement.

public IClassificationType CurrentStatement { get; }

Property Value

IClassificationType:

The IClassificationType to use for a current statement.

Remarks

Only the foreground and background are editable in the default IHighlightingStyle that is registered for this classification type.

DelimiterMatching

Gets the IClassificationType to use for a delimiter match highlight.

public IClassificationType DelimiterMatching { get; }

Property Value

IClassificationType:

The IClassificationType to use for delimiter match highlight.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

FindMatchHighlight

Gets the IClassificationType to use for a find match highlight.

public IClassificationType FindMatchHighlight { get; }

Property Value

IClassificationType:

The IClassificationType to use for find match highlight.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

FindScopeHighlight

Gets the IClassificationType to use for a find scope highlight.

public IClassificationType FindScopeHighlight { get; }

Property Value

IClassificationType:

The IClassificationType to use for find scope highlight.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

InactiveSelectedText

Gets the IClassificationType to use for inactive selected text.

public IClassificationType InactiveSelectedText { get; }

Property Value

IClassificationType:

The IClassificationType to use for inactive selected text.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

IndentationGuides

Gets the IClassificationType to use for indentation guides.

public IClassificationType IndentationGuides { get; }

Property Value

IClassificationType:

The IClassificationType to use for indentation guides.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

IndicatorMargin

Gets the IClassificationType to use for the indicator margin.

public IClassificationType IndicatorMargin { get; }

Property Value

IClassificationType:

The IClassificationType to use for the indicator margin.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

LineNumbers

Gets the IClassificationType to use for line numbers.

public IClassificationType LineNumbers { get; }

Property Value

IClassificationType:

The IClassificationType to use for line numbers.

Remarks

Only the foreground and background are editable in the default IHighlightingStyle that is registered for this classification type.

OutliningMarginSquare

Gets the IClassificationType to use for outlining margin squares.

public IClassificationType OutliningMarginSquare { get; }

Property Value

IClassificationType:

The IClassificationType to use for outlining margin squares.

Remarks

Only the foreground and background are editable in the default IHighlightingStyle that is registered for this classification type.

OutliningMarginVerticalRule

Gets the IClassificationType to use for outlining margin vertical rules.

public IClassificationType OutliningMarginVerticalRule { get; }

Property Value

IClassificationType:

The IClassificationType to use for outlining margin vertical rules.

Remarks

Only the foreground is editable in the default IHighlightingStyle that is registered for this classification type.

PlainText

Gets the IClassificationType to use for plain text.

public IClassificationType PlainText { get; }

Property Value

IClassificationType:

The IClassificationType to use for plain text.

Remarks

Only the foreground and background are editable in the default IHighlightingStyle that is registered for this classification type.

RevertedChangesMark

Gets the IClassificationType to use for reverted changes marks.

public IClassificationType RevertedChangesMark { get; }

Property Value

IClassificationType:

The IClassificationType to use for reverted changes marks.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

SavedChangesMark

Gets the IClassificationType to use for saved changes marks.

public IClassificationType SavedChangesMark { get; }

Property Value

IClassificationType:

The IClassificationType to use for saved changes marks.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

SelectedText

Gets the IClassificationType to use for selected text.

public IClassificationType SelectedText { get; }

Property Value

IClassificationType:

The IClassificationType to use for selected text.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

UnsavedChangesMark

Gets the IClassificationType to use for unsaved changes marks.

public IClassificationType UnsavedChangesMark { get; }

Property Value

IClassificationType:

The IClassificationType to use for unsaved changes marks.

Remarks

Only the background is editable in the default IHighlightingStyle that is registered for this classification type.

VisibleWhitespace

Gets the IClassificationType to use for visible whitespace.

public IClassificationType VisibleWhitespace { get; }

Property Value

IClassificationType:

The IClassificationType to use for visible whitespace.

Remarks

Only the foreground is editable in the default IHighlightingStyle that is registered for this classification type.

Methods

RegisterAll()

Registers all classification types and highlighting styles with the IHighlightingStyleRegistry used by this class.

public IEnumerable<IClassificationType> RegisterAll()

Returns

IEnumerable<IClassificationType>:

The collection of IClassificationType objects that were registered.

Inherited Members