IClassificationFormatMap::AddExplicitTextProperties Method (IClassificationType^, TextFormattingRunProperties^)
Visual Studio 2015
Adds a TextFormattingRunProperties to a new IClassificationType.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
void AddExplicitTextProperties(
IClassificationType^ classificationType,
TextFormattingRunProperties^ properties
)
Parameters
- classificationType
-
Type:
Microsoft.VisualStudio.Text.Classification::IClassificationType^
The IClassificationType.
- properties
-
Type:
Microsoft.VisualStudio.Text.Formatting::TextFormattingRunProperties^
The new properties.
| Exception | Condition |
|---|---|
| ArgumentNullException | classificationType is null. |
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.
Show: