Accusoft.ImagXpress13.Net
AddItem Method




The Tool enumeration value which represents the tool which the menu is associated.
An integer value which represents the top menu ID.
An integer value which represents a user defined field.
An integer value which represents a user defined field.
Adds an item to the specified menu.
Syntax
'Declaration
 
Public Sub AddItem( _
   ByVal tool As Tool, _
   ByVal topMenuId As Integer, _
   ByVal subMenuId As Integer, _
   ByVal menuText As String, _
   ByVal user1 As Integer, _
   ByVal user2 As Integer _
) 
'Usage
 
Dim instance As ToolbarContextMenu
Dim tool As Tool
Dim topMenuId As Integer
Dim subMenuId As Integer
Dim menuText As String
Dim user1 As Integer
Dim user2 As Integer
 
instance.AddItem(tool, topMenuId, subMenuId, menuText, user1, user2)
public void AddItem( 
   Tool tool,
   int topMenuId,
   int subMenuId,
   string menuText,
   int user1,
   int user2
)
public: void AddItem( 
   Tool tool,
   int topMenuId,
   int subMenuId,
   string* menuText,
   int user1,
   int user2
) 
public:
void AddItem( 
   Tool tool,
   int topMenuId,
   int subMenuId,
   String^ menuText,
   int user1,
   int user2
) 

Parameters

tool
The Tool enumeration value which represents the tool which the menu is associated.
topMenuId
An integer value which represents the top menu ID.
subMenuId
An intger value which represents the sub menu ID.
menuText
A string value which represents the menu text.
user1
An integer value which represents a user defined field.
user2
An integer value which represents a user defined field.
Remarks

This method adds a new menu item to the specified menu. If the Menu is Toolbar, ten the Tool parameter is the Tool ID that the menu is associated with.

If the Menu is Context, the Tool parameter has no meaning and can be any value.

If the menu item is to be a top-level menu item, then the subMenuId should be 0. A subMenuID menu item can only be added when a topMenuId has been added with a previous subMenuId set to 0.

See Also

Reference

ToolbarContextMenu Class
ToolbarContextMenu Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback