menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridRangeInfoConverter - API Reference

    Show / Hide Table of Contents

    Class GridRangeInfoConverter

    Implements the methods that can be used to convert ranges from one data type to another. Access this class through the TypeDescriptor.

    Inheritance
    System.Object
    GridRangeInfoConverter
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridRangeInfoConverter : TypeConverter

    Constructors

    GridRangeInfoConverter()

    Initializes the new instance of the GridRangeInfoConverter class.

    Declaration
    public GridRangeInfoConverter()

    Methods

    CanConvertFrom(ITypeDescriptorContext, Type)

    Determines whether this converter can convert an object of the given type to the type of this converter, using the specified context.

    Declaration
    public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Format context.

    System.Type sourceType

    The type you want to convert from.

    Returns
    Type Description
    System.Boolean

    True if this converter can perform the conversion; otherwise, false.

    ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

    Overridden to convert the given object to the type of this converter, using the specified context and culture information.

    Declaration
    public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Format context.

    System.Globalization.CultureInfo culture

    Current culture information.

    System.Object value

    The object to convert.

    Returns
    Type Description
    System.Object

    An System.Object that represents the converted value.

    ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

    Overridden to convert 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

    Format context.

    System.Globalization.CultureInfo culture

    Current culture information.

    System.Object value

    The object to convert.

    System.Type destinationType

    The type to convert the value parameter to.

    Returns
    Type Description
    System.Object

    An System.Object that represents the converted value.

    CreateInstance(ITypeDescriptorContext, IDictionary)

    Creates an instance of the type that this System.ComponentModel.TypeConverter is associated with, using the specified context, given a set of property values for the object.

    Declaration
    public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Format context.

    System.Collections.IDictionary propertyValues

    A collection of new property values.

    Returns
    Type Description
    System.Object

    An System.Object representing the given System.Collections.IDictionary, or null if the object cannot be created. This method always returns null.

    GetCreateInstanceSupported(ITypeDescriptorContext)

    Determines whether changing a value on this object requires a call to System.ComponentModel.TypeConverter.CreateInstance(System.Collections.IDictionary) to create a new value, using the specified context.

    Declaration
    public override bool GetCreateInstanceSupported(ITypeDescriptorContext context)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Format context.

    Returns
    Type Description
    System.Boolean

    returns true.

    GetProperties(ITypeDescriptorContext, Object, Attribute[])

    Determines a collection of properties for the specified object type.

    Declaration
    public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Format context.

    System.Object value

    The object that represents the type.

    System.Attribute[] attributes

    An array of System.Attibute objects that will be used as a filter.

    Returns
    Type Description
    System.ComponentModel.PropertyDescriptorCollection

    A list of properties.

    GetPropertiesSupported(ITypeDescriptorContext)

    Determines whether this object supports properties, using the specified context.

    Declaration
    public override bool GetPropertiesSupported(ITypeDescriptorContext context)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Format context.

    Returns
    Type Description
    System.Boolean

    returns true.

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