ImageKeyConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a type converter to convert data for an image key to and from another data type.
public ref class ImageKeyConverter : System::ComponentModel::StringConverter
public class ImageKeyConverter : System.ComponentModel.StringConverter
type ImageKeyConverter = class
inherit StringConverter
Public Class ImageKeyConverter
Inherits StringConverter
- Inheritance
- Derived
Remarks
The ImageKeyConverter class is used to convert key values of an ImageList to and from other data types. For more information about type converters, see the TypeConverter base class.
Note
Typically, you do not directly create an instance of an ImageKeyConverter. Instead, call the GetConverter method of the TypeDescriptor class. For more information, see the examples in the TypeConverter base class.
Constructors
| Name | Description |
|---|---|
| ImageKeyConverter() |
Initializes a new instance of the ImageKeyConverter class. |
Properties
| Name | Description |
|---|---|
| IncludeNoneAsStandardValue |
Gets or sets a value indicating whether |
Methods
| Name | Description |
|---|---|
| CanConvertFrom(ITypeDescriptorContext, Type) |
Returns whether this converter can convert an object of the given type to a string using the specified context. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Converts from the specified object to a string. |
| ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
Converts the given object to the specified type. |
| GetStandardValues(ITypeDescriptorContext) |
Returns a collection of standard image keys for the image list associated with the specified context. |
| GetStandardValuesExclusive(ITypeDescriptorContext) |
Determines whether the list of standard values for the ImageKeyConverter is exclusive (that is, whether it allows values other than those returned by GetStandardValues). |
| GetStandardValuesSupported(ITypeDescriptorContext) |
Determines whether this type converter supports a standard set of values that can be picked from a list. |