Type converter class for SyntaxEditorPalettes.
Definition
Namespace:Telerik.WinForms.Controls.SyntaxEditor.Palettes
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class SyntaxEditorPaletteConverter : TypeConverter
Inheritance: objectTypeConverterSyntaxEditorPaletteConverter
Inherited Members
Constructors
public SyntaxEditorPaletteConverter()
Methods
Returns whether the type converter can convert an object from the specified type to the type of this converter.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
An object that provides a format context.
sourceTypeTypeThe type you want to convert from.
Returns:True if this converter can perform the conversion; otherwise, false.
Overrides:
Returns whether the type converter can convert an object to the specified type.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
An object that provides a format context.
destinationTypeTypeThe type you want to convert to.
Returns:True if this converter can perform the conversion; otherwise, false.
Overrides:
Converts from the specified value to the intended conversion type of the converter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
An object that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe value to convert to the type of this converter.
Returns:The converted value.
Exceptions:ConvertFrom(ITypeDescriptorContext, CultureInfo, object) not implemented in base TypeConverter.
Overrides:
Converts the specified value object to the specified type.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
An object that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe object to convert.
destinationTypeTypeThe type to convert the object to.
Returns:The converted object.
Exceptions:ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type) not implemented in base TypeConverter.
Overrides:
Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
An ITypeDescriptorContext that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be null.
Returns:TypeConverter.StandardValuesCollection
A TypeConverter.StandardValuesCollection that holds a standard set of valid values, or null if the data type does not support a standard set of values.
Overrides:
Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
An ITypeDescriptorContext that provides a format context.
Returns:Returns true if GetStandardValues() should be called to find a common set of values the object supports; otherwise, false.
Overrides: