WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CultureInfoTypeConverter

    Show / Hide Table of Contents

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved