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




Gets or sets a value indicating whether this RasterImageListItem is selected.

Syntax

Visual Basic (Declaration) 
Public Property Selected As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImageListItem
Dim value As Boolean
 
instance.Selected = value
 
value = instance.Selected
C# 
public bool Selected {get; set;}
Managed Extensions for C++ 
public: __property bool get_Selected();
public: __property void set_Selected( 
   bool value
);
C++/CLI 
public:
property bool Selected {
   bool get();
   void set (bool value);
}

Return Value

true if this RasterImageListItem is currently selected; otherwise, false.

Example

For an example, refer to RasterImageList.

Remarks

You can check if a certain item is selected or not using this property. Also you can use the RasterImageList.SelectedItems property to obtain a collection of all the currently selected items in an RasterImageList control.

Items are usually selected/un-selected in the RasterImageList control through the user interface when the user clicks on an item or using the keyboard.

You can manually select/un-select items using this property.

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