Accusoft.ImagXpress13.Net
DeleteItem Method




The Tool enumeration value which represents the tool that the menu is associated with.
An integer value which represents the top menu ID.
Deletes an item from the specified menu.
Syntax
'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)
public bool DeleteItem( 
   Tool tool,
   int topMenuId,
   int subMenuId
)
public: bool DeleteItem( 
   Tool tool,
   int topMenuId,
   int subMenuId
) 
public:
bool DeleteItem( 
   Tool tool,
   int topMenuId,
   int subMenuId
) 

Parameters

tool
The Tool enumeration value which represents the tool that the menu is associated with.
topMenuId
An integer value which represents the top menu ID.
subMenuId
An intger value which represents the sub menu ID.

Return Value

A boolean value which is true if the menu item text was deleted. Otherwise, false is returned.
Remarks

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.

See Also

Reference

ToolbarContextMenu Class
ToolbarContextMenu Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback