LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
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;}
C++/CLI 
[BrowsableAttribute(false)]
public:
property RasterImageListItemCollection^ SelectedItems {
   RasterImageListItemCollection^ get();
}

Property 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 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also