次の方法で共有


Font.OfSize Method

Definition

Overloads

OfSize(String, NamedSize)

Returns an usable Font, with the requested font and NamedSize.

OfSize(String, Double)

Returns a Font structure with the requested font and size.

OfSize(String, NamedSize)

Returns an usable Font, with the requested font and NamedSize.

public static Xamarin.Forms.Font OfSize (string name, Xamarin.Forms.NamedSize size);
static member OfSize : string * Xamarin.Forms.NamedSize -> Xamarin.Forms.Font

Parameters

name
System.String

The name of the targeted system font.

size
NamedSize

The desired font NamedSize.

Returns

A Font instance.

Remarks

Font availability is platform and device dependent.

Applies to

OfSize(String, Double)

Returns a Font structure with the requested font and size.

public static Xamarin.Forms.Font OfSize (string name, double size);
static member OfSize : string * double -> Xamarin.Forms.Font

Parameters

name
System.String

The name of the targeted system font.

size
System.Double

The desired font size.

Returns

A Font instance.

Remarks

Font availability is platform- and device-dependent.

Applies to