Bagikan melalui


TextBlock.FontWeight Properti

Definisi

Mendapatkan atau mengatur bobot font tingkat atas untuk TextBlock.

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

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

Nilai Properti

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

Berlaku untuk