确定文本是否应为粗体。
命名空间: Microsoft.VisualStudio.Text.Classification
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
Public Property IsBold As Nullable(Of Boolean)
public Nullable<bool> IsBold { get; protected set; }
public:
property Nullable<bool> IsBold {
Nullable<bool> get ();
protected: void set (Nullable<bool> value);
}
member IsBold : Nullable<bool> with get, set
function get IsBold () : Nullable<boolean>
protected function set IsBold (value : Nullable<boolean>)
属性值
类型:Nullable<Boolean>
true ,如果文本为粗体,否则 false。
备注
,如果分类格式有更高的优先级,此值会重写在 FontTypeface 属性的粗体设置。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。