MenuItem.LastRowIndex

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

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