共用方式為


TextFormattingRunProperties.Typeface 屬性

取得文字的字樣。

命名空間:  Microsoft.VisualStudio.Text.Formatting
組件:  Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

語法

'宣告
Public Overrides ReadOnly Property Typeface As Typeface
public override Typeface Typeface { get; }
public:
virtual property Typeface^ Typeface {
    Typeface^ get () override;
}
abstract Typeface : Typeface with get 
override Typeface : Typeface with get
override function get Typeface () : Typeface

屬性值

類型:Typeface
字樣。

備註

如果沒有字樣目前的設定,則傳回系統預設字型。

.NET Framework 安全性

請參閱

參考

TextFormattingRunProperties 類別

Microsoft.VisualStudio.Text.Formatting 命名空間