FontIconSource.FontSize Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur ukuran glyph ikon.
Dokumentasi ini berlaku untuk WinUI 2 untuk UWP (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi 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" .../>
Nilai Properti
Nilai non-negatif yang menentukan ukuran font, diukur dalam piksel.
- Atribut
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute
Keterangan
Ukuran unit untuk FontSize adalah piksel, mengukur tinggi baris karakter dalam font. Ukuran teks yang jelas di UI dapat bervariasi berdasarkan penskalaan saat ini. Jika Anda ingin menggunakan nilai FontSize yang berbeda untuk penskalaan yang berbeda, Anda dapat melakukan ini menggunakan sistem sumber daya.
Berlaku untuk
Saran dan Komentar
Kirim dan lihat umpan balik untuk