Share via


Device.GetNamedSize Method

Definition

Overloads

GetNamedSize(NamedSize, Element)
Obsolete.

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

GetNamedSize(NamedSize, Type)
Obsolete.

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)
Obsolete.

For internal use by the Microsoft.Maui.Controls platform.

GetNamedSize(NamedSize, Element)

Source:
Device.cs
Source:
Device.cs

Caution

This API is now deprecated.

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

public:
 static double GetNamedSize(Microsoft::Maui::Controls::NamedSize size, Microsoft::Maui::Controls::Element ^ targetElement);
[System.Obsolete]
public static double GetNamedSize (Microsoft.Maui.Controls.NamedSize size, Microsoft.Maui.Controls.Element targetElement);
[<System.Obsolete>]
static member GetNamedSize : Microsoft.Maui.Controls.NamedSize * Microsoft.Maui.Controls.Element -> double
Public Shared Function GetNamedSize (size As NamedSize, targetElement As Element) As 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

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

Attributes

Applies to

GetNamedSize(NamedSize, Type)

Source:
Device.cs
Source:
Device.cs

Caution

This API is now deprecated.

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(Microsoft::Maui::Controls::NamedSize size, Type ^ targetElementType);
[System.Obsolete]
public static double GetNamedSize (Microsoft.Maui.Controls.NamedSize size, Type targetElementType);
[<System.Obsolete>]
static member GetNamedSize : Microsoft.Maui.Controls.NamedSize * Type -> double
Public Shared Function GetNamedSize (size As NamedSize, targetElementType As Type) As 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

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

Attributes

Applies to

GetNamedSize(NamedSize, Type, Boolean)

Source:
Device.cs
Source:
Device.cs

Caution

This API is now deprecated.

For internal use by the Microsoft.Maui.Controls platform.

public:
 static double GetNamedSize(Microsoft::Maui::Controls::NamedSize size, Type ^ targetElementType, bool useOldSizes);
[System.Obsolete]
public static double GetNamedSize (Microsoft.Maui.Controls.NamedSize size, Type targetElementType, bool useOldSizes);
[<System.Obsolete>]
static member GetNamedSize : Microsoft.Maui.Controls.NamedSize * Type * bool -> double
Public Shared Function GetNamedSize (size As NamedSize, targetElementType As Type, useOldSizes As Boolean) As Double

Parameters

size
NamedSize

For internal use by the Microsoft.Maui.Controls platform.

targetElementType
Type

For internal use by the Microsoft.Maui.Controls platform.

useOldSizes
Boolean

For internal use by the Microsoft.Maui.Controls platform.

Returns

For internal use by the Microsoft.Maui.Controls platform.

Attributes

Applies to