SegmentedControl.AddAt

From Xojo Documentation

Method

SegmentedControl.AddSegmentAt(index as Integer, segment as SegmentedControlItem)

New in 2019r2

Supported for all project types and targets.

Creates a new segment at index (moving the existing rows over). The first segment is numbered 0.

Example

The following example adds a segment at the 4th position.

Var seg As New SegmentedControlItem
seg.Title = "Banana"
SegmentedControl1.AddSegmentAt(seg)