FontTypeConverter Class

Definition

A TypeConverter that converts from strings to Font.

[Xamarin.Forms.Xaml.TypeConversion(typeof(Xamarin.Forms.Font))]
public sealed class FontTypeConverter : Xamarin.Forms.TypeConverter
type FontTypeConverter = class
    inherit TypeConverter
Inheritance
FontTypeConverter
Attributes

Remarks

String should be formatted as "[name],[attributes],[size]" there may be multiple attributes, e.g. "Georgia, Bold, Italic, 42"

Constructors

FontTypeConverter()

Creates a new FontTypeConverter with default values.

Methods

CanConvertFrom(Type)

When implemented in a derived class, returns a Boolean value that indicates whether or not the derived type converter can convert sourceType to its target type.

(Inherited from TypeConverter)
ConvertFrom(CultureInfo, Object)

When implemented in a derived class, converts an object that is a version of value and that can be cast to the target type.

(Inherited from TypeConverter)
ConvertFrom(Object)

Calls ConvertFrom(CultureInfo, Object) with the current culture information and o.

(Inherited from TypeConverter)
ConvertFromInvariantString(String)

Converts value into a Font.

Applies to