SegmentedButton.SegmentCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aSegmentedButton.SegmentCount

New in 2019r2

Supported for all project types and targets.

The number of Segments in the SegmentedButton.

Example

This example displays the number of Segments in the SegmentedButton.

MsgBox(SegmentedButton1.SegmentCount.ToString)