Class CultureInfoTypeConverter
Converter for converting string into culture info
Inheritance
System.Object
CultureInfoTypeConverter
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public sealed class CultureInfoTypeConverter : TypeConverter
Constructors
CultureInfoTypeConverter()
Declaration
public CultureInfoTypeConverter()
Methods
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the System.String object to the System.Globalization.CultureInfo.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | Do not used. |
System.Globalization.CultureInfo | culture | do not used. |
System.Object | value | The System.String object to convert. |
Returns
Type | Description |
---|---|
System.Object | The converted value. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | A System.ComponentModel.ITypeDescriptorContext that provides a format context. |
System.Globalization.CultureInfo | culture | A System.Globalization.CultureInfo. |
System.Object | value | The ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type). |
System.Type | destinationType | The System.Type to convert the value parameter to. |
Returns
Type | Description |
---|---|
System.Object | The converted value. |