Class RangeSliderConverter
Represents a TypeConverter based class to converts type into bool value and vise-versa.
Inheritance
System.Object
RangeSliderConverter
Namespace: Syncfusion.Windows.Forms.Tools.Design
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class RangeSliderConverter : TypeConverter
Constructors
RangeSliderConverter()
Declaration
public RangeSliderConverter()
Methods
CanConvertTo(ITypeDescriptorContext, Type)
Checks whether type can be converted.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | System.ComponentModel.ITypeDescriptorContext that provides a format context |
System.Type | destinationType | System.ComponentModel.ITypeDescriptorContext that provides a format context |
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 | System.ComponentModel.ITypeDescriptorContext that provides a format context. |
System.Globalization.CultureInfo | culture | System.Globalization.CultureInfo. If null is passed, the current culture is assumed. |
System.Object | value | System.Object to convert. |
System.Type | destinationType | System.Type to convert the value parameter to. |
Returns
Type | Description |
---|---|
System.Object | System.Object that represents the converted value. |