menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridRangeStyleTypeConverter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridRangeStyleTypeConverter

    Implements the type converter for GridRangeStyle objects. GridRangeStyleTypeConverter is a System.ComponentModel.ExpandableObjectConverter. It overrides the default behavior of the ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) method and adds support for design-time code serialization.

    Inheritance
    System.Object
    GridRangeStyleTypeConverter
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridRangeStyleTypeConverter : ExpandableObjectConverter

    Constructors

    GridRangeStyleTypeConverter()

    Initializes the new instance of the GridRangeStyleTypeConverter class.

    Declaration
    public GridRangeStyleTypeConverter()

    Methods

    CanConvertTo(ITypeDescriptorContext, Type)

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

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

    Format context.

    System.Type destinationType

    The type you want to convert to.

    Returns
    Type Description
    System.Boolean

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

    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

    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.

    GetProperties(ITypeDescriptorContext, Object, Attribute[])

    A list 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

    Graphics context.

    System.Object value

    An object that specifies the type.

    System.Attribute[] attributes

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

    Returns
    Type Description
    System.ComponentModel.PropertyDescriptorCollection

    A collection of properties.

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