void RemoveActionMenuItem( String sExistingItem )
String sExistingItem
An existing menu item. See the documentation for AppendActionMenuItemToGroup for ways to specify sExistingItem for cascading
menus.
This method removes an item from the action menu.
You cannot use this method to remove an entire cascading submenu in one call. You must remove each item on the submenu individually.
declare ScatterPlot plot; plot = ScatterPlot.Create( "Action Menu", 1:10, 1:10 ); plot.AppendActionMenuItem( "Item 1", "print 'Item 1';" ); plot.AppendActionMenuItem( "Item 2", "print 'Item 2';" ); plot.RemoveActionMenuItem( "Item 1" ); /* Press F11 in the plot window to see the menu. */
DataView.AppendActionMenuItem
DataView.ReplaceActionMenuItem