Accusoft.ImagXpress13.Net
SetItemEnabled Method




A Tool enumeration value associated with the menu item.
An integer value which represents the top-level menu ID.
A boolean value which is true to enable the menu item. Otherwise, false should be set.
A boolean value which is true when the menu item is enabled and all other menu items on the same menu level are disabled. Otherwise, use false when the menu item is enabled and all other menu items on the same menu level do not have to be disabled.
Sets if a menu item is enabled.
Syntax
'Declaration
 
Public Sub SetItemEnabled( _
   ByVal tool As Tool, _
   ByVal topMenuId As Integer, _
   ByVal subMenuId As Integer, _
   ByVal enabled As Boolean, _
   ByVal exclusive As Boolean _
) 
'Usage
 
Dim instance As ToolbarContextMenu
Dim tool As Tool
Dim topMenuId As Integer
Dim subMenuId As Integer
Dim enabled As Boolean
Dim exclusive As Boolean
 
instance.SetItemEnabled(tool, topMenuId, subMenuId, enabled, exclusive)
public void SetItemEnabled( 
   Tool tool,
   int topMenuId,
   int subMenuId,
   bool enabled,
   bool exclusive
)
public: void SetItemEnabled( 
   Tool tool,
   int topMenuId,
   int subMenuId,
   bool enabled,
   bool exclusive
) 
public:
void SetItemEnabled( 
   Tool tool,
   int topMenuId,
   int subMenuId,
   bool enabled,
   bool exclusive
) 

Parameters

tool
A Tool enumeration value associated with the menu item.
topMenuId
An integer value which represents the top-level menu ID.
subMenuId
An integer value which represents the sub-level menu ID.
enabled
A boolean value which is true to enable the menu item. Otherwise, false should be set.
exclusive
A boolean value which is true when the menu item is enabled and all other menu items on the same menu level are disabled. Otherwise, use false when the menu item is enabled and all other menu items on the same menu level do not have to be disabled.
Remarks

When a menu item is enabled, the application end-user can select the menu item. Items that are enabled appear in dark print. Items that are not enabled are grayed out.

See Also

Reference

ToolbarContextMenu Class
ToolbarContextMenu Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback