Class GridBaseStyleConverter
Defines a class that provides a type converter to convert expandable objects to and from various other representations.
Inheritance
System.Object
GridBaseStyleConverter
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridBaseStyleConverter : ExpandableObjectConverter
Constructors
GridBaseStyleConverter()
Initializes anew instance of the GridBaseStyleConverter class with the specified ExpandableObjectConverter.
Declaration
public GridBaseStyleConverter()
Methods
CanConvertTo(ITypeDescriptorContext, Type)
Overrides and gets a value indicating whether this converter can convert an object to the given destination type using the context.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | Format context. |
System.Type | destinationType | Target type. |
Returns
Type | Description |
---|---|
System.Boolean | IfTrueConversion is possible;Otherwise False. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Overrides and converts the given value object to the specified destination type using the specified context and arguments.
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 | Culture information. |
System.Object | value | Value to convert. |
System.Type | destinationType | Target type. |
Returns
Type | Description |
---|---|
System.Object | Converted object. |