Accusoft.NotateXpress13.Net
MenuAddItem Method




If the MenuType is Toolbar, then the Tool parameter is the Tool that the menu is associated with. An AnnotationTool enumeration. If the %% is Context, the Tool parameter has no meaning and can be any value.
Top-level menu Id for this menu item. A menu id of 4100-4200 is reserved for adding a menu separator bar. The topMenuId of the new item MUST be 20000 or greater for user added items.
A long value that will be passed back in a MenuSelect event.
A long value that will be passed back in a MenuSelect event.
Adds a user-defined item to the Context Menu.
Syntax
'Declaration
 
Public Sub MenuAddItem( _
   ByVal menuType As MenuType, _
   ByVal tool As AnnotationTool, _
   ByVal topMenuId As Integer, _
   ByVal subMenuId As Integer, _
   ByVal menuText As String, _
   ByVal user1 As Integer, _
   ByVal user2 As Integer _
) 
'Usage
 
Dim instance As NotateXpress
Dim menuType As MenuType
Dim tool As AnnotationTool
Dim topMenuId As Integer
Dim subMenuId As Integer
Dim menuText As String
Dim user1 As Integer
Dim user2 As Integer
 
instance.MenuAddItem(menuType, tool, topMenuId, subMenuId, menuText, user1, user2)
public void MenuAddItem( 
   MenuType menuType,
   AnnotationTool tool,
   int topMenuId,
   int subMenuId,
   string menuText,
   int user1,
   int user2
)
public: void MenuAddItem( 
   MenuType menuType,
   AnnotationTool tool,
   int topMenuId,
   int subMenuId,
   string* menuText,
   int user1,
   int user2
) 
public:
void MenuAddItem( 
   MenuType menuType,
   AnnotationTool tool,
   int topMenuId,
   int subMenuId,
   String^ menuText,
   int user1,
   int user2
) 

Parameters

menuType
The MenuType Context or Toolbar.
tool
If the MenuType is Toolbar, then the Tool parameter is the Tool that the menu is associated with. An AnnotationTool enumeration. If the %% is Context, the Tool parameter has no meaning and can be any value.
topMenuId
Top-level menu Id for this menu item. A menu id of 4100-4200 is reserved for adding a menu separator bar. The topMenuId of the new item MUST be 20000 or greater for user added items.
subMenuId
Sub-level menu Id for this menu item, if this is to add a sub-level menu item otherwise this parameter should be 0.
menuText
The text that will be displayed for this menu item
user1
A long value that will be passed back in a MenuSelect event.
user2
A long value that will be passed back in a MenuSelect event.
Remarks

This method lets you add new items to the Context Menu and receive event notifications when these items are selected.

See the TopMenuId and the SubMenuId enumerations for a list of predefined data.

See Also

Reference

NotateXpress Class
NotateXpress Members
TopMenuId Enumeration
SubMenuId Enumeration

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback