LEADTOOLS Windows Forms (Leadtools.WinForms assembly)
LEAD Technologies, Inc

SelectedIndexChanged Event (RasterImageList)






Occurs when the index of the selected item in the RasterImageList control changes.
Syntax
public event EventHandler SelectedIndexChanged
'Declaration
 
Public Event SelectedIndexChanged As EventHandler
'Usage
 
Dim instance As RasterImageList
Dim handler As EventHandler
 
AddHandler instance.SelectedIndexChanged, handler
public event EventHandler SelectedIndexChanged
add_SelectedIndexChanged(function(sender, e))
remove_SelectedIndexChanged(function(sender, e))

public:
event EventHandler^ SelectedIndexChanged
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.

Example
For an example, refer to Image.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImageList Class
RasterImageList Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.