Freigeben über


EditorFormatDefinition.ForegroundColor-Eigenschaft

Ruft die Vordergrundfarbe für dieses Element ab oder legt diese fest.

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

Syntax

'Declaration
Public Property ForegroundColor As Nullable(Of Color)
public Nullable<Color> ForegroundColor { get; protected set; }
public:
property Nullable<Color> ForegroundColor {
    Nullable<Color> get ();
    protected: void set (Nullable<Color> value);
}
member ForegroundColor : Nullable<Color> with get, set
function get ForegroundColor () : Nullable<Color>
protected function set ForegroundColor (value : Nullable<Color>)

Eigenschaftswert

Typ: Nullable<Color>
Die Vordergrundfarbe.

Hinweise

Wenn der Vordergrundpinsel festgelegt ist, wird diese Farbe ignoriert.

.NET Framework-Sicherheit

Siehe auch

Referenz

EditorFormatDefinition Klasse

Microsoft.VisualStudio.Text.Classification-Namespace