获取或设置项的前景色。
命名空间: Microsoft.VisualStudio.Text.Classification
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
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>)
属性值
类型:Nullable<Color>
前景色。
备注
如果前景画笔设置,此颜色将被忽略。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。