This documentation is archived and is not being maintained.

Icon Methods

The methods of the Icon class are listed here. For a complete list of Icon class members, see the Icon Members topic.

Public Methods

public methodClone Clones the Icon object, creating a duplicate image.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose

Supported by the .NET Compact Framework.

Releases all resources used by this Icon object.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodstatic (Shared in Visual Basic)FromHandle Creates a GDI+ Icon object from the specified Windows handle to an icon (HICON).
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodSave Saves this Icon object to the specified output Stream object.
public methodToBitmap Converts this Icon object to a GDI+ Bitmap object.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Gets a human-readable string that describes the Icon object.

Protected Methods

protected methodFinalize

Supported by the .NET Compact Framework.

Overridden. See Object.Finalize.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Icon Class | System.Drawing Namespace

Show: