Home Cooker Classes Others Rice CookerGX
Classes  >  select  >  SelectedIndex(int)
select class : SelectedIndex(int) setter

Description

Selects item at index position of this selectbox.

Syntax

selectInstance.SelectedIndex = index

Arguments

ClassNameDescription
intindexThe Index of item to be selected

Return value

None

Sample code

// anySelect is an instance of select class.

anySelect.SelectedIndex = 1;

Notes

The index is 0 based.

If the index exceeds the range, it will be unselected.

Links for reference

Copyright © Rice All rights reserved.