Device.GetNamedSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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
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
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
The named size for the font that is used on the element on the native platform.