BuiltInClassificationTypeProvider Class
Represents a provider of built-in IClassificationType objects that can be registered to a IHighlightingStyleRegistry with default styles.
public class BuiltInClassificationTypeProvider
- Inheritance:
- object object
Constructors
BuiltInClassificationTypeProvider()
Initializes a new instance of the class.
BuiltInClassificationTypeProvider(IHighlightingStyleRegistry)
Initializes a new instance of the class.
public BuiltInClassificationTypeProvider(IHighlightingStyleRegistry registry)
Parameter | Type | Description |
---|---|---|
registry | IHighlightingStyleRegistry | The IHighlightingStyleRegistry to use when registering classification types and highlighting styles. |
See Also
Properties
Comment
Gets the IClassificationType to use for a general comment.
public IClassificationType Comment { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general comment.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
CompilerError
Gets the IClassificationType to use for a compiler error.
public IClassificationType CompilerError { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a compiler error.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Identifier
Gets the IClassificationType to use for a general identifier.
public IClassificationType Identifier { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general identifier.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
this[string]
Gets the common IClassificationType, if any, for the given key.
public IClassificationType this[string key] { get; }
Parameter | Type | Description |
---|---|---|
key | string | The key of the common IClassificationType. |
Property Value
- IClassificationType:
The corresponding IClassificationType if found; otherwise
null
.
Remarks
The first time a IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Keyword
Gets the IClassificationType to use for a general keyword.
public IClassificationType Keyword { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general keyword.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Number
Gets the IClassificationType to use for a general number.
public IClassificationType Number { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general number.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Operator
Gets the IClassificationType to use for a general operator.
public IClassificationType Operator { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general operator.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
OtherError
Gets the IClassificationType to use for an other error.
public IClassificationType OtherError { get; }
Property Value
- IClassificationType:
The IClassificationType to use for an other error.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
PreprocessorKeyword
Gets the IClassificationType to use for a general preprocessor keyword.
public IClassificationType PreprocessorKeyword { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general preprocessor keyword.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Punctuation
Gets the IClassificationType to use for general punctuation.
public IClassificationType Punctuation { get; }
Property Value
- IClassificationType:
The IClassificationType to use for general punctuation.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
ReadOnlyRegion
Gets the IClassificationType to use for a read-only region.
public IClassificationType ReadOnlyRegion { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a read-only region.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
String
Gets the IClassificationType to use for a general string.
public IClassificationType String { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a general string.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
SyntaxError
Gets the IClassificationType to use for a syntax error.
public IClassificationType SyntaxError { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a syntax error.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Warning
Gets the IClassificationType to use for a warning.
public IClassificationType Warning { get; }
Property Value
- IClassificationType:
The IClassificationType to use for a warning.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
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.
Remarks
The first time this IClassificationType is accessed, it will be registered in the configured IHighlightingStyleRegistry with a default style if one is not already registered.
See Also
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()