Share via


RichTextBlock.FontStretch Properti

Definisi

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

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

void FontStretch(FontStretch value);
public FontStretch FontStretch { get; set; }
var fontStretch = richTextBlock.fontStretch;
richTextBlock.fontStretch = fontStretch;
Public Property FontStretch As FontStretch
<RichTextBlock FontStretch="fontStretchMemberName"/>

Nilai Properti

Peregangan font yang diminta, sebagai konstanta FontStretch . Defaultnya adalah Normal.

Keterangan

Atur properti FontStretch untuk menentukan peregangan 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.FontStretch .

Berlaku untuk

Lihat juga