WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IProvideCustomContextMenuPositionalInformation - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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 Description
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved