TextBlock.FontStyle 屬性

定義

取得或設定這個項目中內容的字型樣式。

public:
 property FontStyle FontStyle { FontStyle get(); void set(FontStyle value); };
FontStyle FontStyle();

void FontStyle(FontStyle value);
public FontStyle FontStyle { get; set; }
var fontStyle = textBlock.fontStyle;
textBlock.fontStyle = fontStyle;
Public Property FontStyle As FontStyle
<TextBlock FontStyle="fontStyleMemberName"/>

屬性值

要求的字型樣式,這是 FontStyle 列舉值。 預設值為 Normal。

適用於