Share via


FontIconSource.FontSize Propiedad

Definición

Obtiene o establece el tamaño del glifo del icono.

Esta documentación se aplica a WinUI 2 para UWP (para WinUI en el SDK de Aplicaciones para Windows, consulta los espacios de nombres SDK de Aplicaciones para Windows).

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" .../>

Valor de propiedad

Double

double

Valor no negativo que especifica el tamaño de fuente, medido en píxeles.

Atributos
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Comentarios

La medida unitaria de FontSize es píxeles, midiendo el alto de línea de los caracteres de la fuente. El tamaño aparente del texto en la interfaz de usuario puede variar en función del escalado actual. Si desea usar diferentes valores fontSize para diferentes escalas, puede hacerlo mediante el sistema de recursos.

Se aplica a