Accusoft.ImagXpressSdk Namespace > ToolbarContextMenu Class : DeleteItem Method |
'Declaration Public Function DeleteItem( _ ByVal tool As Tool, _ ByVal topMenuId As Integer, _ ByVal subMenuId As Integer _ ) As Boolean
'Usage Dim instance As ToolbarContextMenu Dim tool As Tool Dim topMenuId As Integer Dim subMenuId As Integer Dim value As Boolean value = instance.DeleteItem(tool, topMenuId, subMenuId)
If the menu item is to be a top-level menu item, then the subMenuId should be 0. However, this will delete all sub-level menu items as well for that top-level menu item.
If the topMenuId and subLevelId are both 0, then the entire menu is cleared.