Home Cooker Classes Others Rice CookerGX
Classes  >  option  >  Index
option class : Index getter

Description

Gets the index indicating the position of this option within the parent select.

Syntax

optionInstance.Index

Arguments

None

Return value

ClassDescription
intThe index indicating the position of this option within the parent select.

Sample code

//anyOption is an instance of option class.

int index= anyOption.Index;

Notes

The index is 0 based.

Links for reference

Copyright © Rice All rights reserved.