SizeTypeConverter Class

Definition

A TypeConverter that can convert a string into a Size object.

[Xamarin.Forms.Xaml.TypeConversion(typeof(Xamarin.Forms.Size))]
public class SizeTypeConverter : Xamarin.Forms.TypeConverter
type SizeTypeConverter = class
    inherit TypeConverter
Inheritance
SizeTypeConverter
Attributes

Constructors

SizeTypeConverter()

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 a string of the form $"{width},{height}" to a Size object.

Applies to