Back to Devexpress

QueryShowPopupMenuEventArgs.Position Property

windowsforms-devexpress-dot-xtrabars-dot-queryshowpopupmenueventargs-13944599.md

latest2.7 KB
Original Source

QueryShowPopupMenuEventArgs.Position Property

Gets or sets the position of the queried menu popup.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Point Position { get; set; }
vb
Public Property Position As Point

Property Value

TypeDescription
Point

The position of the queried menu popup.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Position property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-spell-check-cell-text/CS/SpreadsheetSpellchecking/Form1.cs#L37

csharp
void OnBarManager_QueryShowPopupMenu(object sender, QueryShowPopupMenuEventArgs e) {
    Point position = e.Control.PointToClient(e.Position);
    DevExpress.XtraSpellChecker.Rules.SpellCheckErrorBase error = spellChecker.CalcError(position);

winforms-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellchecking/Form1.vb#L42

vb
Private Sub OnBarManager_QueryShowPopupMenu(ByVal sender As Object, ByVal e As QueryShowPopupMenuEventArgs)
    Dim position As Point = e.Control.PointToClient(e.Position)
    Dim [error] As DevExpress.XtraSpellChecker.Rules.SpellCheckErrorBase = spellChecker.CalcError(position)

See Also

QueryShowPopupMenuEventArgs Class

QueryShowPopupMenuEventArgs Members

DevExpress.XtraBars Namespace