TypeListConverter
Class
Definition
Provides a type converter that can be used to populate a list box with available types.
public abstract class TypeListConverter : System.ComponentModel.TypeConverter
- Inheritance
Inherited Members
System.ComponentModel.TypeConverter
System.Object
Remarks
You must provide the list of types to the constructor of this abstract class.
For more information about type converters, see the TypeConverter base class and How to: Implement a Type Converter.
Note
You should never create an instance of a TypeListConverter. Instead, call the GetConverter method of TypeDescriptor. For more information, see the examples in the TypeConverter base class.
Constructors
| TypeListConverter(Type[]) |
Initializes a new instance of the TypeListConverter class using the type array as the available types. |
Methods
| CanConvertFrom(ITypeDescriptorContext, Type) |
Gets a value indicating whether this converter can convert the specified Type of the source object using the given context. |
| CanConvertTo(ITypeDescriptorContext, Type) |
Gets a value indicating whether this converter can convert an object to the given destination type using the context. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Converts the specified object to the native type of the converter. |
| ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
Converts the given value object to the specified destination type. |
| GetStandardValues(ITypeDescriptorContext) |
Gets a collection of standard values for the data type this validator is designed for. |
| GetStandardValuesExclusive(ITypeDescriptorContext) |
Gets a value indicating whether the list of standard values returned from the GetStandardValues(ITypeDescriptorContext) method is an exclusive list. |
| GetStandardValuesSupported(ITypeDescriptorContext) |
Gets a value indicating whether this object supports a standard set of values that can be picked from a list using the specified context. |