EditorFormatDefinition.BackgroundColor 属性

获取或设置项的背景色。

命名空间:  Microsoft.VisualStudio.Text.Classification
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

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

属性值

类型:Nullable<Color>
背景色

备注

如果背景画笔设置,此颜色将被忽略。

.NET Framework 安全性

请参阅

参考

EditorFormatDefinition 类

Microsoft.VisualStudio.Text.Classification 命名空间