Xamarin.Forms Guides | Samples

Xamarin.Forms.TypeConverter Class

Abstract base class whose subclasses can convert values between different types.

See Also: TypeConverter

Syntax

public abstract class TypeConverter

Remarks

The following diagram shows subclasses of TypeConverter.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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

See Also: Object

Protected Constructors

Creates a new TypeConverter object.

Public Methods

CanConvertFrom(Type) : Boolean
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.
ConvertFrom(Object) : Object
Calls TypeConverter.ConvertFrom(CultureInfo,object) with the current culture information and o.
ConvertFrom(CultureInfo, Object) : 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.
ConvertFromInvariantString(String) : Object
When overriden in a derived class, converts XAML extension syntax into instances of various Xamarin.Forms types.