IClassificationFormatMap.AddExplicitTextProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddExplicitTextProperties(IClassificationType, TextFormattingRunProperties)
Adds a TextFormattingRunProperties to a new IClassificationType.
public:
void AddExplicitTextProperties(Microsoft::VisualStudio::Text::Classification::IClassificationType ^ classificationType, Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ properties);
public void AddExplicitTextProperties (Microsoft.VisualStudio.Text.Classification.IClassificationType classificationType, Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties properties);
abstract member AddExplicitTextProperties : Microsoft.VisualStudio.Text.Classification.IClassificationType * Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties -> unit
Public Sub AddExplicitTextProperties (classificationType As IClassificationType, properties As TextFormattingRunProperties)
Parameters
- classificationType
- IClassificationType
The IClassificationType.
- properties
- TextFormattingRunProperties
The new properties.
Exceptions
classificationType
is null.
Remarks
Adding the text properties will cause the ClassificationFormatMappingChanged event to be sent.
classificationType
has the highest priority.
If classificationType
already exists in the map, then this is equivalent to SetTextProperties(IClassificationType, TextFormattingRunProperties)(classificationType, properties).
Applies to
AddExplicitTextProperties(IClassificationType, TextFormattingRunProperties, IClassificationType)
Adds a TextFormattingRunProperties to a new IClassificationType.
public:
void AddExplicitTextProperties(Microsoft::VisualStudio::Text::Classification::IClassificationType ^ classificationType, Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ properties, Microsoft::VisualStudio::Text::Classification::IClassificationType ^ priority);
public void AddExplicitTextProperties (Microsoft.VisualStudio.Text.Classification.IClassificationType classificationType, Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties properties, Microsoft.VisualStudio.Text.Classification.IClassificationType priority);
abstract member AddExplicitTextProperties : Microsoft.VisualStudio.Text.Classification.IClassificationType * Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties * Microsoft.VisualStudio.Text.Classification.IClassificationType -> unit
Public Sub AddExplicitTextProperties (classificationType As IClassificationType, properties As TextFormattingRunProperties, priority As IClassificationType)
Parameters
- classificationType
- IClassificationType
The IClassificationType.
- properties
- TextFormattingRunProperties
The new properties.
- priority
- IClassificationType
The IClassificationType that defines the relative priority of classificationType
.
Exceptions
classificationType
, properties
or
priority
is null.
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(IClassificationType, TextFormattingRunProperties)(classificationType, properties).