Device.GetNamedSize Method

Definition

Overloads

Name Description
GetNamedSize(NamedSize, Element)
Obsolete.

Returns the named font size for the specified element type.

GetNamedSize(NamedSize, Type)
Obsolete.

Returns the named font size for the specified element type.

GetNamedSize(NamedSize, Type, Boolean)
Obsolete.

Returns the named font size for the specified element type.

GetNamedSize(NamedSize, Element)

Source:
Device.cs
Source:
Device.cs
Source:
Device.cs
Source:
Device.cs

Caution

This API is now deprecated.

Returns the named font size for the specified element type.

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 to retrieve.

targetElement
Element

The element to get the named size for.

Returns

The font size value.

Attributes

Applies to

GetNamedSize(NamedSize, Type)

Source:
Device.cs
Source:
Device.cs
Source:
Device.cs
Source:
Device.cs

Caution

This API is now deprecated.

Returns the named font size for the specified element type.

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 to retrieve.

targetElementType
Type

The element type to get the named size for.

Returns

The font size value.

Attributes

Applies to

GetNamedSize(NamedSize, Type, Boolean)

Source:
Device.cs
Source:
Device.cs
Source:
Device.cs
Source:
Device.cs

Caution

This API is now deprecated.

Returns the named font size for the specified element type.

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

The named size to retrieve.

targetElementType
Type

The element type to get the named size for.

useOldSizes
Boolean

Whether to use legacy font sizes.

Returns

The font size value.

Attributes

Applies to