共用方式為


Font.SystemFontOfSize Method

Definition

Overloads

SystemFontOfSize(Double)

Returns an usable font instance representing the default font, in the requested size, for the device and platform.

SystemFontOfSize(NamedSize)

Returns an usable font instance representing the default font, in the requested size, for the device and platform.

SystemFontOfSize(Double, FontAttributes)

Returns a font structure with the specified size and attributes.

SystemFontOfSize(NamedSize, FontAttributes)

Returns a font structure with the specified size and attributes.

SystemFontOfSize(Double)

Returns an usable font instance representing the default font, in the requested size, for the device and platform.

public static Xamarin.Forms.Font SystemFontOfSize (double size);
static member SystemFontOfSize : double -> Xamarin.Forms.Font

Parameters

size
System.Double

The desired font size.

Returns

The requested Font.

Applies to

SystemFontOfSize(NamedSize)

Returns an usable font instance representing the default font, in the requested size, for the device and platform.

public static Xamarin.Forms.Font SystemFontOfSize (Xamarin.Forms.NamedSize size);
static member SystemFontOfSize : Xamarin.Forms.NamedSize -> Xamarin.Forms.Font

Parameters

size
NamedSize

The desired font NamedSize.

Returns

The requested bold Font.

Applies to

SystemFontOfSize(Double, FontAttributes)

Returns a font structure with the specified size and attributes.

public static Xamarin.Forms.Font SystemFontOfSize (double size, Xamarin.Forms.FontAttributes attributes);
static member SystemFontOfSize : double * Xamarin.Forms.FontAttributes -> Xamarin.Forms.Font

Parameters

size
System.Double

The requested font size.

attributes
FontAttributes

Whether the font is bold, italic, or neither.

Returns

A Font structure with the specified attributes and size.

Applies to

SystemFontOfSize(NamedSize, FontAttributes)

Returns a font structure with the specified size and attributes.

public static Xamarin.Forms.Font SystemFontOfSize (Xamarin.Forms.NamedSize size, Xamarin.Forms.FontAttributes attributes);
static member SystemFontOfSize : Xamarin.Forms.NamedSize * Xamarin.Forms.FontAttributes -> Xamarin.Forms.Font

Parameters

size
NamedSize

The requested named font size.

attributes
FontAttributes

Whether the font is bold, italic, or neither.

Returns

A Font structure with the specified attributes and size.

Applies to