IClassificationFormatMap.AddExplicitTextProperties Method (IClassificationType, TextFormattingRunProperties)

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

void AddExplicitTextProperties(
	IClassificationType classificationType,
	TextFormattingRunProperties properties
)

ExceptionCondition
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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft