Share via


Imagelist.smallIconWidth Method

Definition

Retrieves the system metrics for the width of a small icon.

public:
 static int smallIconWidth();
public static int smallIconWidth ();
static member smallIconWidth : unit -> int
Public Shared Function smallIconWidth () As Integer

Returns

An integer that represents the width of a small icon.

Remarks

The following example creates an image list that has the standard height and width for small icons, and then prints the width of images in the list.

Imagelist list = new Imagelist( 
   Imagelist::smallIconWidth(), 
   Imagelist::smallIconHeight()); 
print list.width();   
pause;

Applies to