Partager via


IClassificationFormatMap.SetExplicitTextProperties Method

Sets the explicit TextFormattingRunProperties of an IClassificationType.

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

Syntax

'Déclaration
Sub SetExplicitTextProperties ( _
    classificationType As IClassificationType, _
    properties As TextFormattingRunProperties _
)
void SetExplicitTextProperties(
    IClassificationType classificationType,
    TextFormattingRunProperties properties
)
void SetExplicitTextProperties(
    IClassificationType^ classificationType, 
    TextFormattingRunProperties^ properties
)
abstract SetExplicitTextProperties : 
        classificationType:IClassificationType * 
        properties:TextFormattingRunProperties -> unit 
function SetExplicitTextProperties(
    classificationType : IClassificationType, 
    properties : TextFormattingRunProperties
)

Parameters

Remarks

Setting the text properties will cause the ClassificationFormatMappingChanged event to be sent.

Provided values in properties will be set for the provided classificationType and override any inherited values. If you wish to keep the inheritance structure and only override the set of varying properties, please use SetTextProperties.

.NET Framework Security

See Also

Reference

IClassificationFormatMap Interface

Microsoft.VisualStudio.Text.Classification Namespace