Share via


Imagelist.iconWidth Method

Definition

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

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

Returns

An integer that represents the width of a standard icon.

Remarks

The following example creates a list of images, and then sets them to the standard icon width and height.

ImageList list = new Imagelist( 
    Imagelist::iconWidth(), 
    Imagelist::iconHeight());

Applies to