IClassificationFormatMap.AddExplicitTextProperties Method (IClassificationType, TextFormattingRunProperties)

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 _
)
void AddExplicitTextProperties(
    IClassificationType classificationType,
    TextFormattingRunProperties properties
)
void AddExplicitTextProperties(
    IClassificationType^ classificationType, 
    TextFormattingRunProperties^ properties
)
abstract AddExplicitTextProperties : 
        classificationType:IClassificationType * 
        properties:TextFormattingRunProperties -> unit
function AddExplicitTextProperties(
    classificationType : IClassificationType, 
    properties : TextFormattingRunProperties
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

classificationType is nulla null reference (Nothing in Visual Basic).

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.

.NET Framework Security

See Also

Reference

IClassificationFormatMap Interface

AddExplicitTextProperties Overload

Microsoft.VisualStudio.Text.Classification Namespace