Interface IProvideCustomContextMenuPositionalInformation
Implement this interface to provide context menu location in your control when the context menu is invoked by a keyboard key.
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public interface IProvideCustomContextMenuPositionalInformation
Remarks
Used by the XPMenus framework (when using PopupMenus in Essential Tools) to determine the context menu location for a control.
Methods
GetMenuPositionForKeyboardInvoke()
Returns a point in client coordinates of the control.
Declaration
Point GetMenuPositionForKeyboardInvoke()
Returns
Type |
---|
System.Drawing.Point |
Remarks
This method will be called when the context menu is being invoked due to a key like Shift + F10. The control that implements this interface should then return a point in client coordinates of the control where the context menus should be shown.
If the control were a TreeView for example, it should then return a location beside the current selected node.