Share via


Imagelist.newmethod Method

Definition

Overloads

newmethod(Int32, Int32)

Creates a new empty list to hold images.

newmethod(Int32, Int32, Boolean)

newmethod(Int32, Int32)

Creates a new empty list to hold images.

public:
 void newmethod(int num1, int num2);
public void newmethod (int num1, int num2);
override this.newmethod : int * int -> unit
Public Sub newmethod (num1 As Integer, num2 As Integer)

Parameters

num1
Int32
num2
Int32

Remarks

You can use the autoResize method to automatically resize images when you add them to the list.

The following example creates an image list to hold items of the standard icon width and height.

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

Applies to

newmethod(Int32, Int32, Boolean)

public:
 void newmethod(int _cx, int _cy, bool _transparent);
public void newmethod (int _cx, int _cy, bool _transparent);
override this.newmethod : int * int * bool -> unit
Public Sub newmethod (_cx As Integer, _cy As Integer, _transparent As Boolean)

Parameters

_cx
Int32
_cy
Int32
_transparent
Boolean

Applies to