WebMenuItem.Insert

From Xojo Documentation

Method

WebMenuItem.Insert(Index As Integer, Item As WebMenuItem)

New in 2011r2

Supported for all project types and targets.

Inserts the item at the index position in the menu.

Sample Code

This example populates a contextual menu.

Var menu As New WebMenuItem

menu.Append(New WebMenuItem("One"))
menu.Append(New WebMenuItem("Two"))
menu.Append(New WebMenuItem("Three"))
menu.Insert(0, New WebMenuItem("Zero"))
Me.ContextualMenu = menu