windowsforms-devexpress-dot-xtrabars-dot-queryshowpopupmenueventargs-13944599.md
Gets or sets the position of the queried menu popup.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public Point Position { get; set; }
Public Property Position As Point
| Type | Description |
|---|---|
| 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
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
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