共用方式為


ContentPresenter.FontWeight 屬性

定義

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

屬性值

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

適用於