共用方式為


Device.GetNamedSize Method

Definition

Overloads

GetNamedSize(NamedSize, Type, Boolean)

For internal use by the Xamarin.Forms platform.

GetNamedSize(NamedSize, Element)

Returns a double that represents a font size that corresponds to size on targetElement.

GetNamedSize(NamedSize, Type)

Returns a double that represents the named size for the font that is used on the element on the native platform.

GetNamedSize(NamedSize, Type, Boolean)

For internal use by the Xamarin.Forms platform.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static double GetNamedSize (Xamarin.Forms.NamedSize size, Type targetElementType, bool useOldSizes);
static member GetNamedSize : Xamarin.Forms.NamedSize * Type * bool -> double

Parameters

size
NamedSize

For internal use by the Xamarin.Forms platform.

targetElementType
System.Type

For internal use by the Xamarin.Forms platform.

useOldSizes
System.Boolean

For internal use by the Xamarin.Forms platform.

Returns

System.Double

For internal use by the Xamarin.Forms platform.

Attributes
System.ComponentModel.EditorBrowsableAttribute

Applies to

GetNamedSize(NamedSize, Element)

Returns a double that represents a font size that corresponds to size on targetElement.

public static double GetNamedSize (Xamarin.Forms.NamedSize size, Xamarin.Forms.Element targetElement);
static member GetNamedSize : Xamarin.Forms.NamedSize * Xamarin.Forms.Element -> double

Parameters

size
NamedSize

The named size for which to get the numeric size.

targetElement
Element

The element for which to calculate the numeric size.

Returns

System.Double

A double that represents a font size that corresponds to size on targetElement.

Applies to

GetNamedSize(NamedSize, Type)

Returns a double that represents the named size for the font that is used on the element on the native platform.

public static double GetNamedSize (Xamarin.Forms.NamedSize size, Type targetElementType);
static member GetNamedSize : Xamarin.Forms.NamedSize * Type -> double

Parameters

size
NamedSize

The named size for which to get the numeric size.

targetElementType
System.Type

The element type for which to calculate the numeric size.

Returns

System.Double

The named size for the font that is used on the element on the native platform.

Applies to