SegmentedButton.AddSegment

From Xojo Documentation

Method

SegmentedButton.AddSegment(segment As Segment)

New in 2019r2

Supported for all project types and targets.

Adds Segment as a new segment at the end of the control.

Example

The following example in the Open event of the control adds a segment to it:

Var seg As New Segment
seg.Title = "Banana"
Me.AddSegment(seg)