共用方式為


IClassificationFormatMap.SetExplicitTextProperties Method

Definition

public:
 void SetExplicitTextProperties(Microsoft::VisualStudio::Text::Classification::IClassificationType ^ classificationType, Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ properties);
public void SetExplicitTextProperties (Microsoft.VisualStudio.Text.Classification.IClassificationType classificationType, Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties properties);
abstract member SetExplicitTextProperties : Microsoft.VisualStudio.Text.Classification.IClassificationType * Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties -> unit
Public Sub SetExplicitTextProperties (classificationType As IClassificationType, properties As TextFormattingRunProperties)

Parameters

classificationType
IClassificationType

The IClassificationType.

properties
TextFormattingRunProperties

The new properties.

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(IClassificationType, TextFormattingRunProperties).

Applies to