WebPopupMenu.AddRowAt

From Xojo Documentation

Method

WebPopupMenu.AddRowAt(index As Integer, item As String, [tag As Variant = nil])

New in 2020r1

Supported for all project types and targets.

Creates a new row at index, moving the existing rows below index down.


Method

WebPopupMenu.AddRowAt(index As Integer, item As WebMenuItem)

New in 2020r1

Supported for all project types and targets.

Creates a new row at item, moving the existing rows below index down. The item in this case is a WebMenuItem.

Sample Code

The following example adds a row at above a specific row in the 'PopupMenu from another control:

PopupMenu1.AddRowAt(1, "Steven")

This example adds an item using a WebMenuItem in order to set the TextColor to blue.

Var item As New WebMenuItem("Police")
item.TextColor = Color.Blue
PopupMenu1.AddRowAt(1, item)

See Also

RowCount property, WebMenuItem class.