ZenMenus.Delete



Delete(bsName As String) As Boolean

Parameters

bsName As String
The string defines the name of the menu which should be deleted.

Example: "main_menu"
ED
avaliable
RT
not used

Remarks

The defined menu will be deleted. As this function works via names there are no seperated properties for context or main menu selection.
(context and main menu can not have the same names)

Sample:


Sub DeleteMenus()

Dim zMenus As ZenMenus  'Parent object

Set zMenus = MyWorkspace.ActiveDocument.ZenMenus

'Delete context and main menus via their name
zMenus.Delete ("main_menu")
zMenus.Delete ("context_menu")

End Sub

See Also

ZenMenus