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
- classificationType
Type: Microsoft.VisualStudio.Text.Classification.IClassificationType
The IClassificationType.
- properties
Type: Microsoft.VisualStudio.Text.Formatting.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.