Class RecordFilterDescriptorTypeConverter
Represents a class for type converter for RecordFilterDescriptor objects. RecordFilterDescriptorTypeConverter is a DescriptorBaseConverter. It overrides the default behavior of the ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) method and adds support for design-time code serialization.
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public class RecordFilterDescriptorTypeConverter : DescriptorBaseConverter
Constructors
RecordFilterDescriptorTypeConverter()
Declaration
public RecordFilterDescriptorTypeConverter()
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. |
Overrides
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 | Target type. |
Returns
| Type | Description |
|---|---|
| System.Object | Converted object. |
Overrides
GetProperties(ITypeDescriptorContext, Object, Attribute[])
Returns a collection of properties for a given 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 | Object type. |
| System.Attribute[] | attributes | An array of objects of type System.Attribute that will be used as a filter. |
Returns
| Type | Description |
|---|---|
| System.ComponentModel.PropertyDescriptorCollection | Property descriptor collection. |