IconConverter 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.
Converts an Icon object from one data type to another. Access this class through the TypeDescriptor object.
public ref class IconConverter : System::ComponentModel::ExpandableObjectConverter
public class IconConverter : System.ComponentModel.ExpandableObjectConverter
type IconConverter = class
inherit ExpandableObjectConverter
Public Class IconConverter
Inherits ExpandableObjectConverter
- Inheritance
Remarks
Note
In .NET 6 and later versions, the System.Drawing.Common package, which includes this type, is only supported on Windows operating systems. Use of this type in cross-platform apps causes compile-time warnings and run-time exceptions. For more information, see System.Drawing.Common only supported on Windows.
Constructors
| Name | Description |
|---|---|
| IconConverter() |
Initializes a new instance of the IconConverter class. |
Methods
| Name | Description |
|---|---|
| CanConvertFrom(ITypeDescriptorContext, Type) |
Determines whether this IconConverter can convert an instance of a specified type to an Icon, using the specified context. |
| CanConvertTo(ITypeDescriptorContext, Type) |
Determines whether this IconConverter can convert an Icon to an instance of a specified type, using the specified context. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Converts a specified object to an Icon. |
| ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
Converts an Icon (or an object that can be cast to an Icon) to a specified type. |