RasterImageListItemCollection Class

Summary

Represents the collection of items in a RasterImageList control.

Syntax

C#
C++/CLI
public class RasterImageListItemCollection : LeadCollection<RasterImageListItem> 
public: 
   ref class RasterImageListItemCollection : LeadCollection<RasterImageListItem^> 

Remarks

A RasterImageListItemCollection stores the items displayed in the RasterImageList control.

There are a number of ways to add items to the collection. The Add method adds a single item to the collection. To add a number of items to the collection, you create an array of items and pass it to the AddRange method. If you want to insert an item at a specific location in the collection, you can use the Insert method. To remove items, you can use either the Remove method. The ClearItems method enables you to remove all items from the collection instead of using the RemoveItem method to remove a single item at a time.

In addition to methods and properties for adding and removing items, the RasterImageListItemCollection also provides methods to find items in the collection. The Contains method enables you to determine whether an item is a member of the collection. Once you know that the item is located in the collection, you can use the IndexOf method to determine where the item is located in the collection.

NOTE: You cannot add an RasterImageListItem to more than one RasterImageList control at the same time. If you attempt to do this, an exception will be thrown.

Requirements

Target Platforms

See Also

Reference

RasterImageListItemCollection Members

Leadtools.WinForms Namespace

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.