Adds a menu to the menu bar.
.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 to add
- Position
- Position of the existing menu before which to insert the new menu; the first menu is at position 0; if Position is 1, the new menu item is appended to the end of the menu
Return Value
True if menu item was successfully added, false if not
Remarks
See Also