NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Icon Constructor

[To be supplied.]

Overload List

Creates an icon object from a given Win32 icon handle. The Icon object does not claim ownership of the icon handle; you must free it when you are done.

[Visual Basic] Overloads Public Sub New(Integer)
[C#] public Icon(int);
[C++] public: Icon(int);
[JScript] public function Icon(int);

Loads an icon object from the given filename.

[Visual Basic] Overloads Public Sub New(String)
[C#] public Icon(String);
[C++] public: Icon(String*);
[JScript] public function Icon(String);

Duplicates the given icon, attempting to find a version of the icon that matches the requested size. If a version cannot be found that exactally matches the size, the closest match will be used. Note that if original is an icon with a single size, this will merely create a dupicate icon. You can use the stretching modes of drawImage to force the icon to the size you want.

[Visual Basic] Overloads Public Sub New(Icon, Integer, Integer)
[C#] public Icon(Icon, int, int);
[C++] public: Icon(Icon*, int, int);
[JScript] public function Icon(Icon, int, int);

Loads an icon object from the given resource.

[Visual Basic] Overloads Public Sub New(Type, String)
[C#] public Icon(Type, String);
[C++] public: Icon(Type*, String);
[JScript] public function Icon(Type, String);

Loads an icon object from the given data stream.

[Visual Basic] Overloads Public Sub New(Stream)
[C#] public Icon(Stream);
[C++] public: Icon(Stream*);
[JScript] public function Icon(Stream);

[To be supplied.]

[Visual Basic] Overloads Public Sub New(Stream, Integer, Integer)
[C#] public Icon(Stream, int, int);
[C++] public: Icon(Stream*, int, int);
[JScript] public function Icon(Stream, int, int);

See Also

Icon Class | Icon Members | System.Drawing Namespace