Adds a menu to the menu bar.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddMenu( _
ByVal As String, _
ByVal Position As Integer _
) As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IFrame
Dim Menu As String
Dim Position As Integer
Dim value As Boolean
value = instance.AddMenu(Menu, Position)
|
C# | |
---|
bool AddMenu(
string ,
int Position
) |
C++/CLI | |
---|
bool AddMenu(
& String^ ,
& 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