RichTextBlock.FontStyle プロパティ

定義

この要素のコンテンツのフォント スタイルを取得または設定します。

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

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

プロパティ値

要求されたフォント スタイル。これは、constant という名前の FontStyle 列挙体です。 既定値は Normal です。

注釈

FontStyle プロパティを設定して、 RichTextBlock 内のすべてのテキストに使用する既定のフォント ストレッチを指定します。 TextElement.FontStyle プロパティを設定することで、RichTextBlock 内の特定のテキスト要素に対してこの値をオーバーライドできます。

適用対象

こちらもご覧ください