Device.GetNamedSize Method

Definition

Overloads

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, Element)

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

GetNamedSize(NamedSize, Type, Boolean)

For internal use by the Xamarin.Forms platform.

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
Type

The element type for which to calculate the numeric size.

Returns

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

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
Type

For internal use by the Xamarin.Forms platform.

useOldSizes
Boolean

For internal use by the Xamarin.Forms platform.

Returns

Attributes

Applies to