FontIconSource.FontSize Eigenschaft

Definition

Ruft die Größe der Symbolglyphen ab oder legt sie fest.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe die Windows App SDK Namespaces).

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

void FontSize(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="20.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="20.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="20.0")]
double FontSize();

void FontSize(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="20.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="20.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="20.0")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
double FontSize();

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

Eigenschaftswert

Double

double

Ein nicht negativer Wert, der die Schriftgröße angibt, gemessen in Pixeln.

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Hinweise

Die Maßeinheit für FontSize ist Pixel, die Zeilenhöhe der Zeichen in der Schriftart zu messen. Die scheinbare Größe von Text in der Benutzeroberfläche kann je nach aktueller Skalierung variieren. Wenn Sie unterschiedliche FontSize-Werte für unterschiedliche Skalierungen verwenden möchten, können Sie dies mithilfe des Ressourcensystems tun.

Gilt für: