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.
XmlAttributeValue
The XmlAttributeValue classification type.
XmlCDataSection
The XmlCDataSection classification type.
XmlComment
The XmlComment classification type.
XmlDeclaration
The XmlDeclaration classification type.
XmlDelimiter
The XmlDelimiter classification type.
XmlEntity
The XmlEntity classification type.
XmlName
The XmlName classification type.
XmlProcessingInstruction
The XmlProcessingInstruction classification type.
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
- ClassificationTypeProviderBase.GetOrRegisterClassificationType(IClassificationType, bool, bool, bool, LineKind, HighlightingStyleBorderCornerKind, bool, bool?, bool, bool?, LineKind, bool)
- ClassificationTypeProviderBase.GetOrRegisterTextClassificationType(IClassificationType, bool?, bool?, bool)
- ClassificationTypeProviderBase.DefaultDarkColors
- ClassificationTypeProviderBase.DefaultLightColors
- ClassificationTypeProviderBase.TargetRegistry
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()