ImageList::ImageCollection::AddStrip Method (Image^)
.NET Framework (current version)
Adds an image strip for the specified image to the ImageList.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System.Drawing::Image^
A Bitmap with the images to add.
Return Value
Type: System::Int32The index of the newly added image, or -1 if the image cannot be added.
| Exception | Condition |
|---|---|
| ArgumentException | |
| InvalidOperationException | The image cannot be added. -or- The width of image strip being added is 0, or the width is not equal to the existing image width. -or- The image strip height is not equal to existing image height. |
The number of images to add is inferred from the width of the given image.
A strip is a single image that is treated as multiple images arranged side-by-side.
.NET Framework
Available since 1.1
Available since 1.1
Show: