_OlkListBox.SetSelected(Int32, Boolean) 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.
Sets the selected state of an item at the specified location in the list to the given Selected
value.
public:
void SetSelected(int Index, bool Selected);
public void SetSelected (int Index, bool Selected);
Public Sub SetSelected (Index As Integer, Selected As Boolean)
Parameters
- Index
- Int32
A zero-based value that specifies the location of an item in the list.
- Selected
- Boolean
True to indicate that the item should be selected, False to indicate that the item should not be selected.
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.