次の方法で共有


IClassificationFormatMap.AddExplicitTextProperties Method

Definition

Overloads

AddExplicitTextProperties(IClassificationType, TextFormattingRunProperties)

Adds a TextFormattingRunProperties to a new IClassificationType.

AddExplicitTextProperties(IClassificationType, TextFormattingRunProperties, IClassificationType)

Adds a TextFormattingRunProperties to a new IClassificationType.

AddExplicitTextProperties(IClassificationType, TextFormattingRunProperties)

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

Parameters

classificationType
IClassificationType

The IClassificationType.

properties
TextFormattingRunProperties

The new properties.

Exceptions

classificationType is null.

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

Applies to

AddExplicitTextProperties(IClassificationType, TextFormattingRunProperties, IClassificationType)

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

Parameters

classificationType
IClassificationType

The IClassificationType.

properties
TextFormattingRunProperties

The new properties.

priority
IClassificationType

The IClassificationType that defines the relative priority of classificationType.

Exceptions

classificationType, properties or priority is null.

priority does not exist in CurrentPriorityOrder.

Remarks

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

Applies to