Επεξεργασία

ImageIndexConverter Class

Definition

Provides a type converter to convert data for an image index to and from a string.

public ref class ImageIndexConverter : System::ComponentModel::Int32Converter
public class ImageIndexConverter : System.ComponentModel.Int32Converter
type ImageIndexConverter = class
    inherit Int32Converter
Public Class ImageIndexConverter
Inherits Int32Converter
Inheritance
Derived

Remarks

The ImageIndexConverter class is used to convert index values of an ImageList to and from other data types, typically String. For more information about type converters, see the TypeConverter base class.

Note

Typically, you do not directly create an instance of an ImageIndexConverter. Instead, call the GetConverter method of TypeDescriptor. For more information, see the examples in the TypeConverter base class.

Constructors

Name Description
ImageIndexConverter()

Initializes a new instance of the ImageIndexConverter class.

Properties

Name Description
IncludeNoneAsStandardValue

Gets a value that indicates whether a none or null value is valid in the TypeConverter.StandardValuesCollection collection.

Methods

Name Description
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Converts the specified value object to a 32-bit signed integer object.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the specified object to the specified destination type.

GetStandardValues(ITypeDescriptorContext)

Returns a collection of standard index values for the image list associated with the specified format context.

GetStandardValuesExclusive(ITypeDescriptorContext)

Determines if the list of standard values returned from the GetStandardValues method is an exclusive list.

GetStandardValuesSupported(ITypeDescriptorContext)

Determines if the type converter supports a standard set of values that can be picked from a list.

Applies to

See also