Class ExOptionsPanelConverter
- Namespace
- ExControls.Converters
- Assembly
- ExControls.dll
Type converter for references to ExOptionsPanel: the property grid offers the panels of the owning
ExOptionsView and the designer serializes a panel as new ExOptionsPanel(owner).
public class ExOptionsPanelConverter : ReferenceConverter
- Inheritance
-
ExOptionsPanelConverter
- Inherited Members
Constructors
ExOptionsPanelConverter()
Initializes a new instance of the ExOptionsPanelConverter class.
public ExOptionsPanelConverter()
Methods
CanConvertTo(ITypeDescriptorContext?, Type?)
Returns whether this converter can convert the object to the specified type, using the specified context.
public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
destinationTypeTypeA Type that represents the type you want to convert to.
Returns
ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type)
Converts the given value object to the reference type using the specified context and arguments.
public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoA CultureInfo that specifies the culture used to represent the font.
valueobjectThe object to convert.
destinationTypeTypeThe type to convert the object to.
Returns
- object
The converted object.
Exceptions
- ArgumentNullException
destinationTypeis null.- NotSupportedException
The conversion cannot be performed.
GetStandardValues(ITypeDescriptorContext?)
Gets a collection of standard values for the reference data type.
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
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.
GetStandardValuesExclusive(ITypeDescriptorContext?)
Gets a value indicating whether the list of standard values returned from GetStandardValues(ITypeDescriptorContext) is an exclusive list.
public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
Returns
- bool
true because the TypeConverter.StandardValuesCollection returned from GetStandardValues(ITypeDescriptorContext) is an exhaustive list of possible values. This method never returns false.
GetStandardValuesSupported(ITypeDescriptorContext?)
Gets a value indicating whether this object supports a standard set of values that can be picked from a list.
public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
Returns
- bool
true because GetStandardValues(ITypeDescriptorContext) can be called to find a common set of values the object supports. This method never returns false.