Class CustomTypeDescriptorConverter
A ExpandableObjectConverter that lets users expand collections at design-time and list collection items similar to nested properties of a class.
Inheritance
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public class CustomTypeDescriptorConverter : ExpandableObjectConverter
Constructors
CustomTypeDescriptorConverter()
Declaration
public CustomTypeDescriptorConverter()
Methods
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether this object can be converted to the specified type, using the given format.
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 | True if this conversion is supported; False otherwise. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value to the specified type, using the given format and culture.
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 | The CultureInfo. |
| System.Object | value | The value. |
| System.Type | destinationType | The Target type. |
Returns
| Type | Description |
|---|---|
| System.Object | Converted object. |
GetProperties(ITypeDescriptorContext, Object, Attribute[])
Gets 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 | Array type for which to get the properties. |
| System.Attribute[] | attributes | An array of type System.Attribute that will be used as a filter. |
Returns
| Type | Description |
|---|---|
| System.ComponentModel.PropertyDescriptorCollection | Property descriptor collection. |
GetPropertiesSupported(ITypeDescriptorContext)
Gets a value indicating 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 | True when the properties are supported; False otherwise. |