Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Visual Studio 6.0

Menu.insert

Class Overview | Class Members | This Package | All Packages

Syntax 1
public synchronized void insert( MenuItem menuitem, int index )
Parameters
menuitem
the menu item to be inserted.
index
the position at which the menu item should be inserted.
Description
Inserts a menu item into this menu at the specified position.

Exceptions
IllegalArgumentException if the value of index is less than zero.
See Also
add, add



Syntax 2
public void insert( String label, int index )
Parameters
label
the text on the item.
index
the position at which the menu item should be inserted.
Description
Inserts a menu item with the specified label into this menu at the specified position.

See Also
add, add

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.