In This Article

XmlClassificationTypeProvider Class

A provider of IClassificationType objects for the XML language.

public class XmlClassificationTypeProvider : ClassificationTypeProviderBase, IXmlClassificationTypeProvider
Inheritance:
object ClassificationTypeProviderBase object
Implements:
IXmlClassificationTypeProvider

Constructors

XmlClassificationTypeProvider(IHighlightingStyleRegistry?)

Initializes an instance of the class.

public XmlClassificationTypeProvider(IHighlightingStyleRegistry? targetRegistry = null)
Parameter Type Description
targetRegistry IHighlightingStyleRegistry

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

Properties

XmlAttribute

The XmlAttribute classification type.

public IClassificationType XmlAttribute { get; }

Property Value

IClassificationType

XmlAttributeValue

The XmlAttributeValue classification type.

public IClassificationType XmlAttributeValue { get; }

Property Value

IClassificationType

XmlCDataSection

The XmlCDataSection classification type.

public IClassificationType XmlCDataSection { get; }

Property Value

IClassificationType

XmlComment

The XmlComment classification type.

public IClassificationType XmlComment { get; }

Property Value

IClassificationType

XmlDeclaration

The XmlDeclaration classification type.

public IClassificationType XmlDeclaration { get; }

Property Value

IClassificationType

XmlDelimiter

The XmlDelimiter classification type.

public IClassificationType XmlDelimiter { get; }

Property Value

IClassificationType

XmlEntity

The XmlEntity classification type.

public IClassificationType XmlEntity { get; }

Property Value

IClassificationType

XmlName

The XmlName classification type.

public IClassificationType XmlName { get; }

Property Value

IClassificationType

XmlProcessingInstruction

The XmlProcessingInstruction classification type.

public IClassificationType XmlProcessingInstruction { get; }

Property Value

IClassificationType

Methods

CreateDarkColorPalette()

Creates a color palette of default colors for use with a dark theme.

protected override IHighlightingStyleColorPalette CreateDarkColorPalette()

Returns

IHighlightingStyleColorPalette:

An IHighlightingStyleColorPalette instance representing the dark color palette.

Remarks

The default implementation of this method returns an empty DarkHighlightingStyleColorPalette instance, with the intention of the colors in the light color palette being adapted to dark colors automatically. Override this method to use specific dark colors instead of adapted colors.

CreateLightColorPalette()

Creates a color palette of default colors for use with a light theme.

protected override IHighlightingStyleColorPalette CreateLightColorPalette()

Returns

IHighlightingStyleColorPalette:

An IHighlightingStyleColorPalette instance representing the light color palette.

RegisterAll()

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

public override IEnumerable<IClassificationType> RegisterAll()

Returns

IEnumerable<IClassificationType>:

The collection of IClassificationType objects that were registered.

Inherited Members

Extension Methods