Contents

selectedSegment

The index of the selected segment of the control, or -1 if no segment is selected.

Declaration

var selectedSegment: Int { get set }

Discussion

This property contains the zero-based index of the segment. If the control allows multiple selections, the value of this property is the index of the most recently selected segment.

If you specify an index that is out of bounds, an exception (rangeException) is raised.

See Also

Specifying the Selected Segment