IClassificationFormatMap::AddExplicitTextProperties Method (IClassificationType^, TextFormattingRunProperties^, IClassificationType^)

 
Namespace:   Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

void AddExplicitTextProperties(
	IClassificationType^ classificationType,
	TextFormattingRunProperties^ properties,
	IClassificationType^ priority
)

Parameters

classificationType
Type: Microsoft.VisualStudio.Text.Classification::IClassificationType^

The IClassificationType.

properties
Type: Microsoft.VisualStudio.Text.Formatting::TextFormattingRunProperties^

The new properties.

priority
Type: Microsoft.VisualStudio.Text.Classification::IClassificationType^

The IClassificationType that defines the relative priority of classificationType.

Exception Condition
ArgumentNullException

classificationType, properties or priority is null.

KeyNotFoundException

priority does not exist in CurrentPriorityOrder.

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.

Return to top
Show: