TextAlignmentConverter Class

Definition

Converts a string representation of a text alignment to a TextAlignment.

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

Remarks

This converter recognizes and converts string representations of the FlowDirection enumeration, as well as the following strings, regardless of case: "left", "right", and "center".

Constructors

TextAlignmentConverter()

Creates a new default converter.

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)
Obsolete.

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)
Obsolete.

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

(Inherited from TypeConverter)
ConvertFromInvariantString(String)

Returns the object for the string representation.

Applies to