Share via


RichTextBlock.FontWeight Properti

Definisi

Mendapatkan atau mengatur bobot font tingkat atas untuk RichTextBlock.

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

void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
var fontWeight = richTextBlock.fontWeight;
richTextBlock.fontWeight = fontWeight;
Public Property FontWeight As FontWeight
<RichTextBlock FontWeight="fontWeightsMemberName"/>

Nilai Properti

Bobot font yang diminta, yang merupakan FontWeight yang diperoleh dari salah satu nilai properti FontWeights . Defaultnya adalah Normal.

Keterangan

Atur properti FontWeight untuk menentukan rentang 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.FontWeight .

Berlaku untuk

Lihat juga