Adds a menu item.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddMenu( _
ByVal As System.String, _
ByVal Position As System.Integer _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IFrame
Dim Menu As System.String
Dim Position As System.Integer
Dim value As System.Boolean
value = instance.AddMenu(Menu, Position) |
C# | |
---|
System.bool AddMenu(
System.string ,
System.int Position
) |
C++/CLI | |
---|
System.bool AddMenu(
& System.String^ ,
& System.int Position
) |
Parameters
- Menu
Name of the menu item to add; including parent menu names, e.g., subMenuString@menuString (see Remarks)
- Position
- Position of the existing menu item before which to insert the new menu item; the first menu item is at position 0; if Position is 1, the new menu item is appended to the end of the menu (see Remarks)
Return Value
True if menu item was successfully added, false if not
Remarks
See Also