IClassificationFormatMap.DefaultTextProperties Property

Gets or sets the default properties that are applied to all classification types. The default properties contain the set of minimal properties required to render text properly.

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

TextFormattingRunProperties DefaultTextProperties { get; set; }

Property Value

Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
The default text properties.

The default text properties have the lowest priority. Properties associated with a IClassificationType will inherit properties of the DefaultTextProperties only if they do not provide the core necessary properties such as Typeface.

The DefaultTextProperties are guaranteed to contain a Typeface, ForegroundBrush and FontRenderingEmSize.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft