Share via


FontIconSource.FontWeight 屬性

定義

取得或設定圖示圖像的粗細。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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

void FontWeight(FontWeight value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
FontWeight FontWeight();

void FontWeight(FontWeight value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
FontWeight FontWeight();

void FontWeight(FontWeight value);
public FontWeight FontWeight { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
public FontWeight FontWeight { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public FontWeight FontWeight { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="{ 400 }")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
Public Property FontWeight As FontWeight
<FontIconSource FontWeight="fontWeightsValue"/>

屬性值

值,指定圖示圖像的粗細。 預設值為 Normal

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

適用於