共用方式為


IClassificationFormatMap.DefaultTextProperties Property

Definition

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.

public:
 property Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ DefaultTextProperties { Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ get(); void set(Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ value); };
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties DefaultTextProperties { get; set; }
member this.DefaultTextProperties : Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties with get, set
Public Property DefaultTextProperties As TextFormattingRunProperties

Property Value

The default text properties.

Remarks

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

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

Applies to