Share via


ContentPresenter.FontWeight Properti

Definisi

Mendapatkan atau mengatur bobot font tingkat atas untuk konten teks yang disajikan oleh ContentPresenter.

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

void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
var fontWeight = contentPresenter.fontWeight;
contentPresenter.fontWeight = fontWeight;
Public Property FontWeight As FontWeight
<ContentPresenter FontWeight="fontWeightsValue"/>

Nilai Properti

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

Berlaku untuk