DesktopMenuItem.LastRowIndex

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aDesktopMenuItem.LastRowIndex

New in 2021r3

Supported for all project types and targets.

The index of the last child menu item owned by this menu.