Udostępnij przez


Font.OfSize(String, Double, FontWeight, FontSlant, Boolean) Metoda

Definicja

Font Zwraca strukturę z żądaną czcionką i rozmiarem.

public static Microsoft.Maui.Font OfSize (string? name, double size, Microsoft.Maui.FontWeight weight = Microsoft.Maui.FontWeight.Regular, Microsoft.Maui.FontSlant fontSlant = Microsoft.Maui.FontSlant.Default, bool enableScaling = true);
static member OfSize : string * double * Microsoft.Maui.FontWeight * Microsoft.Maui.FontSlant * bool -> Microsoft.Maui.Font
Public Shared Function OfSize (name As String, size As Double, Optional weight As FontWeight = Microsoft.Maui.FontWeight.Regular, Optional fontSlant As FontSlant = Microsoft.Maui.FontSlant.Default, Optional enableScaling As Boolean = true) As Font

Parametry

name
String

Nazwa docelowej czcionki systemowej.

size
Double

Żądany rozmiar czcionki.

weight
FontWeight
fontSlant
FontSlant
enableScaling
Boolean

Zwraca

Font Wystąpienie.

Uwagi

Dostępność czcionek jest zależna od platformy i urządzenia.

Dotyczy