_OlkListBox.GetSelected(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Boolean (bool in C#) that indicates if the indexed item is currently selected.
public:
bool GetSelected(int Index);
public bool GetSelected (int Index);
Public Function GetSelected (Index As Integer) As Boolean
Parameters
- Index
- Int32
A zero-based value that specifies the location of an item in the list.
Returns
A Boolean value (bool in C#) that is True if the specified item is currently selected, False otherwise.
Remarks
If Index
is outside the range of the allowed values (between zero and ListCount-1), then an out-of-bounds error will be returned.