RichTextBlock.FontSize 屬性

定義

取得或設定這個專案中文字內容的字型大小。

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

void FontSize(double value);
public double FontSize { get; set; }
var double = richTextBlock.fontSize;
richTextBlock.fontSize = double;
Public Property FontSize As Double
<RichTextBlock FontSize="double" .../>

屬性值

Double

double

指定以像素為單位之字型大小的非負值。 預設值為 11。

備註

設定 FontSize 屬性,以指定要用於 RichTextBlock 中所有文字的預設字型大小。 您可以藉由設定 TextElement.FontSize 屬性,覆寫 RichTextBlock 中特定文字元素的此值。

適用於

另請參閱