Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
SelectedItems Property
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : SelectedItems Property




Gets the items that are selected in the control.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public ReadOnly Property SelectedItems As RasterImageListItemCollection
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim value As RasterImageListItemCollection
 
value = instance.SelectedItems
C# 
[BrowsableAttribute(false)]
public RasterImageListItemCollection SelectedItems {get;}
Managed Extensions for C++ 
[BrowsableAttribute(false)]
public: __property RasterImageListItemCollection* get_SelectedItems();
C++/CLI 
[BrowsableAttribute(false)]
public:
property RasterImageListItemCollection^ SelectedItems {
   RasterImageListItemCollection^ get();
}

Return Value

A RasterImageListItemCollection that contains the items that are selected in the control. If no items are currently selected, an empty RasterImageListItemCollection is returned.

Example

For an example, refer to Image.

Remarks

When the SelectionMode property is set to RasterImageListSelectionMode.Multi, this property returns a collection containing the items that are selected in the RasterImageList. For a single-selection RasterImageList, this property returns a collection containing the only selected item in the RasterImageList. For more information on the tasks that can be performed with the items in the collection, see RasterImageListItemCollection.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also