Xamarin.Forms.Font Members

The members of Xamarin.Forms.Font are listed below.

See Also: Inherited members from System.ValueType

Public Properties

[read-only]
static
DefaultFont. Gets the default font for the device.
[read-only]
FontAttributesFontAttributes. Gets a value that indicates whether the font is bold, italic, or neither.
[read-only]
FontFamilystring. Gets the font family to which this font belongs.
[read-only]
FontSizedouble. Gets the size of the font.
[read-only]
NamedSizeNamedSize. Gets the named font size, such as "Large" or "Small".
[read-only]
UseNamedSizebool. Gets a value that indicates whether the target operating system should use size that is specified by the Xamarin.Forms.Font.NamedSize property.

Public Methods

static
BoldSystemFontOfSize(double) : Font
Returns a font instance that represents the default bold font, in the requested size, for the device.
static
BoldSystemFontOfSize(NamedSize) : Font
Returns an usable font instance representing the default bold font, in the requested NamedSize, for the device.
override
Equals(object) : bool
Determine if the provided object is equivalent to the current Font.
override
GetHashCode() : int
Get the Hashcode for this object.
static
OfSize(string, double) : Font
Returns a Xamarin.Forms.Font structure with the requested font and size.
static
OfSize(string, NamedSize) : Font
Returns an usable Xamarin.Forms.Font, with the requested font and NamedSize.
static
SystemFontOfSize(double) : Font
Returns an usable font instance representing the default font, in the requested size, for the device and platform.
static
SystemFontOfSize(NamedSize) : Font
Returns an usable font instance representing the default font, in the requested size, for the device and platform.
static
SystemFontOfSize(double, FontAttributes) : Font
Returns a font structure with the specified size and attributes.
static
SystemFontOfSize(NamedSize, FontAttributes) : Font
Returns a font structure with the specified size and attributes.
override
ToString() : string
Returns a string representation of this font structure.
WithAttributes(FontAttributes) : Font
Returns a new font structure with the specified attributes.
WithSize(double) : Font
Returns a new font structure with the size that was specified with size.
WithSize(NamedSize) : Font
A new Xamarin.Forms.Font structure with the size that was specified with size.

Public Operators

static
Equality(Font, Font)Returns true if left represents the same font that right represents. Otherwise, false.
static
Inequality(Font, Font)Returns true if left does not represent the same font that right represents. Otherwise, false.