iOSSegmentedControl.Item

From Xojo Documentation

Revision as of 19:49, 21 August 2018 by PLefebvre (talk | contribs) (Created page with "{{MethodBox | name = Item | ownertype = class | scope = public | parameters = index As Integer | owner = iOSSegmentedControl | returntype = iOSSegmentedControlItem...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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