Class GroupColorItemTypeConverter
Provides a unified way of converting group color items to other types.
Inheritance
System.Object
GroupColorItemTypeConverter
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class GroupColorItemTypeConverter : TypeConverter
Constructors
GroupColorItemTypeConverter()
Declaration
public GroupColorItemTypeConverter()
Methods
CanConvertTo(ITypeDescriptorContext, Type)
Check whether the type can be converted.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
| System.Type | destinationType | A System.Type that represents the type you want to convert to. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If true, this converter can perform the conversion. Otherwise false. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to the reference 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 | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
| System.Globalization.CultureInfo | culture | A System.Globalization.CultureInfo that specifies the culture used to represent the font. |
| System.Object | value | The object value. |
| System.Type | destinationType | The type to convert the object to. |
Returns
| Type | Description |
|---|---|
| System.Object | The converted objects. |