BCGControlBar Library for .NET
ShowContextMenu Method (RibbonControl)




The object from the RibbonControl to show context menu.
The CommandPanel from the RibbonControl to display context menu.
The type of the object to display context menu.
Displays context menu for the Ribbon Control.
Syntax
'Declaration
 
Public Sub ShowContextMenu( _
   ByVal obj As ICommandObject, _
   ByVal ctrl As Control, _
   ByVal type As RibbonObjectType _
) 
'Usage
 
Dim instance As RibbonControl
Dim obj As ICommandObject
Dim ctrl As Control
Dim type As RibbonObjectType
 
instance.ShowContextMenu(obj, ctrl, type)
public void ShowContextMenu( 
   ICommandObject obj,
   Control ctrl,
   RibbonObjectType type
)
public: void ShowContextMenu( 
   ICommandObject* obj,
   Control* ctrl,
   RibbonObjectType type
) 
public:
void ShowContextMenu( 
   ICommandObject^ obj,
   Control^ ctrl,
   RibbonObjectType type
) 

Parameters

obj
The object from the RibbonControl to show context menu.
ctrl
The CommandPanel from the RibbonControl to display context menu.
type
The type of the object to display context menu.
Remarks
Called by framework before right-mouse button up event.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RibbonControl Class
RibbonControl Members

Send Feedback