DesktopSegmentedButton.SegmentCount

From Xojo Documentation

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

New in 2021r3

Supported for all project types and targets.

The number of Segments in the DesktopSegmentedButton.

Example

This example displays the number of segments in the DesktopSegmentedButton.

MessageBox(SegmentedButton1.SegmentCount.ToString)