CADability dotNET
Remove all menu items from the given menue that have an ID which starts with MenuID. This work ofcourse only with menus composed of items of type MenuItemWithID.

Namespace: CADability.UserInterface
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static int RemoveMenuItems(
	Menu toModify,
	string MenuID
)
Visual Basic
Public Shared Function RemoveMenuItems ( _
	toModify As Menu, _
	MenuID As String _
) As Integer
Visual C++
public:
static int RemoveMenuItems(
	Menu^ toModify, 
	String^ MenuID
)

Parameters

toModify
Type: System.Windows.Forms..::..Menu
menu to modify
MenuID
Type: System..::..String
start part of id of menu to remove

Return Value

number of removed items

See Also