Imagelist.height Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the height, in pixels, of the images in the image list.
public:
virtual int height();
public virtual int height ();
abstract member height : unit -> int
override this.height : unit -> int
Public Overridable Function height () As Integer
Returns
An integer that represents the height of the images in pixels.
Remarks
The height of the images in the list is set when you instantiate the list.
The following example creates an image list, and sets the height and width of the images to the dimensions that are specified by the iconWidth and iconHeight methods. It then prints the height of images in the list.
Imagelist list;
list = new Imagelist(
Imagelist::iconWidth(),
Imagelist::iconHeight());
print list.height();
pause;