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;} |
Property Value
true if this RasterImageListItem is currently selected; otherwise, false.For an example, refer to RasterImageList.
You can determine whether a certain item is selected by 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 uses the keyboard.
You can manually select/un-select items using this property.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7