MobileSegmentedButton.AddSegmentAt

From Xojo Documentation

Method

MobileSegmentedButton.AddSegmentAt(index As Integer, item As MobileSegment)

Supported on Mobile.

Adds the segment passed at the index passed.

Sample Code

Add a segment at the beginning:

Var item As New MobileSegment("Moon")
SegmentedButton1.AddSegmentAt(0, item)