iOSSegmentedControl.Item

From Xojo Documentation

Method

iOSSegmentedControl.Item(index As Integer) As iOSSegmentedControlItem

Supported on Mobile (iOS).

Gets a specific segment by its index (0-based).


Method

iOSSegmentedControl.Item(index As Integer, Assigns newItem As iOSSegmentedControlItem)

Supported on Mobile (iOS).

Sets a specific segment by its index (0-based).

Sample Code

Deselect all segments:

For i As Integer = 0 To Me.Count - 1
Me.Item(i).Selected = False
Next