Font.OfSize 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
OfSize(String, NamedSize) |
Returns an usable Font, with the requested font and NamedSize. |
OfSize(String, Double) |
Returns a Font structure with the requested font and size. |
OfSize(String, NamedSize)
Returns an usable Font, with the requested font and NamedSize.
public static Xamarin.Forms.Font OfSize (string name, Xamarin.Forms.NamedSize size);
static member OfSize : string * Xamarin.Forms.NamedSize -> Xamarin.Forms.Font
Parameters
- name
- System.String
The name of the targeted system font.
Returns
A Font instance.
Remarks
Font availability is platform and device dependent.
Applies to
OfSize(String, Double)
Returns a Font structure with the requested font and size.
public static Xamarin.Forms.Font OfSize (string name, double size);
static member OfSize : string * double -> Xamarin.Forms.Font
Parameters
- name
- System.String
The name of the targeted system font.
- size
- System.Double
The desired font size.
Returns
A Font instance.
Remarks
Font availability is platform- and device-dependent.