IClassificationFormatMap.AddExplicitTextProperties Method (IClassificationType, TextFormattingRunProperties, IClassificationType)
Adds a TextFormattingRunProperties to a new IClassificationType.
Namespace: Microsoft.VisualStudio.Text.Classification
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Sub AddExplicitTextProperties ( _
classificationType As IClassificationType, _
properties As TextFormattingRunProperties, _
priority As IClassificationType _
)
void AddExplicitTextProperties(
IClassificationType classificationType,
TextFormattingRunProperties properties,
IClassificationType priority
)
void AddExplicitTextProperties(
IClassificationType^ classificationType,
TextFormattingRunProperties^ properties,
IClassificationType^ priority
)
abstract AddExplicitTextProperties :
classificationType:IClassificationType *
properties:TextFormattingRunProperties *
priority:IClassificationType -> unit
function AddExplicitTextProperties(
classificationType : IClassificationType,
properties : TextFormattingRunProperties,
priority : IClassificationType
)
Parameters
classificationType
Type: Microsoft.VisualStudio.Text.Classification.IClassificationTypeThe IClassificationType.
properties
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunPropertiesThe new properties.
priority
Type: Microsoft.VisualStudio.Text.Classification.IClassificationTypeThe IClassificationType that defines the relative priority of classificationType.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | classificationType, properties or priority is nulla null reference (Nothing in Visual Basic). |
KeyNotFoundException | priority does not exist in CurrentPriorityOrder. |
Remarks
Adding the text properties will cause the ClassificationFormatMappingChanged event to be sent. The priority of classificationType will be lower than that of priority. If classificationType already exists in the map, then this is equivalent to SetTextProperties.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IClassificationFormatMap Interface