共用方式為


TextBlock.FontWeight 屬性

定義

取得或設定 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"/>

屬性值

要求的字型粗細,這是從其中一個FontWeights屬性值取得的FontWeight。 預設值為 Normal

適用於