Share via


RichTextBlock.FontSize Properti

Definisi

Mendapatkan atau mengatur ukuran font untuk konten teks dalam elemen ini.

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" .../>

Nilai Properti

Double

double

Nilai non-negatif yang menentukan ukuran font, diukur dalam piksel. Defaultnya adalah 11.

Keterangan

Atur properti FontSize untuk menentukan ukuran font default yang akan digunakan untuk semua teks di RichTextBlock. Anda dapat mengganti nilai ini untuk elemen teks tertentu di RichTextBlock dengan mengatur properti TextElement.FontSize .

Berlaku untuk

Lihat juga