System.Drawing.Icon Members

The members of System.Drawing.Icon are listed below.

See Also: Inherited members from System.MarshalByRefObject

Public Constructors

Initializes a new instance of the System.Drawing.Icon class from the specified data stream.

Initializes a new instance of the System.Drawing.Icon class from the specified file name.

Initializes a new instance of the System.Drawing.Icon class and attempts to find a version of the icon that matches the requested size.

Initializes a new instance of the System.Drawing.Icon class of the specified size from the specified stream.

Initializes a new instance of the System.Drawing.Icon class of the specified size from the specified file.

Initializes a new instance of the System.Drawing.Icon class from a resource in the specified assembly.

Initializes a new instance of the System.Drawing.Icon class and attempts to find a version of the icon that matches the requested size.

Initializes a new instance of the System.Drawing.Icon class from the specified data stream and with the specified width and height.

Initializes a new instance of the System.Drawing.Icon class with the specified width and height from the specified file.

Public Properties

[read-only]
HandleIntPtr.

Gets the Windows handle for this System.Drawing.Icon. This is not a copy of the handle; do not free it.

[read-only]
Heightint.

Gets the height of this System.Drawing.Icon.

[read-only]
SizeSize.

Gets the size of this System.Drawing.Icon.

[read-only]
Widthint.

Gets the width of this System.Drawing.Icon.

Public Methods

Clone() : object

Clones the System.Drawing.Icon, creating a duplicate image.

Dispose()

Releases all resources used by this System.Drawing.Icon.

static
ExtractAssociatedIcon(string) : Icon

Returns an icon representation of an image that is contained in the specified file.

Finalize()
Documentation for this section has not yet been entered.
static
FromHandle(IntPtr) : Icon

Creates a GDI+ System.Drawing.Icon from the specified Windows handle to an icon (HICON).

Save(System.IO.Stream)

Saves this System.Drawing.Icon to the specified output System.IO.Stream.

ToBitmap() : Bitmap

Converts this System.Drawing.Icon to a GDI+ System.Drawing.Bitmap.

override
ToString() : string

Gets a human-readable string that describes the System.Drawing.Icon.

Explicitly Implemented Interface Members

System.Runtime.Serialization.ISerializable.GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo with the data that is required to serialize the target object.