_OlkListBox.GetSelected(Int32) Method

Definition

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.

Applies to