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




Occurs when the index of the selected item in the RasterImageList control changes.

Syntax

Visual Basic (Declaration) 
Public Event SelectedIndexChanged() As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim handler As EventHandler
 
AddHandler instance.SelectedIndexChanged, handler
C# 
public event EventHandler SelectedIndexChanged()
Managed Extensions for C++ 
public: __event EventHandler* SelectedIndexChanged();
C++/CLI 
public:
event EventHandler^ SelectedIndexChanged();

Example

For an example, refer to Image.

Remarks

For single selection RasterImageList controls (i.e. when SelectionMode is set to RasterImageListSelectionMode.Single), this event occurs whenever there is a change to the index position of the selected item.

In a multiple selection RasterImageList control (i.e. when SelectionMode is set to RasterImageListSelectionMode.Multi), this event occurs whenever an item is removed or added to the list of selected items.

To determine which items are selected in the RasterImageList control, use the SelectedItems property to access the RasterImageListItemCollection.

You can also determine which items are selected in the control by enumerating all the Items and checking the RasterImageListItem.Selected property.

You can create an event handler for this event to perform tasks whenever there is a change to the selected items in the RasterImageList control.

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