FigureShape.Count

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aFigureShape.Count

Supported for all project types and targets.

The number of CurveShapes.

Example

Var fx As New FigureShape
.
.
Label1.Value = Str(fx.Count)