語言

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 列舉值。 預設是普通。

適用於