windowsforms-devexpress-dot-xtraeditors-dot-filtering-dot-popupmenushowingeventargs.md
Gets the node where the menu is to be displayed.
Namespace : DevExpress.XtraEditors.Filtering
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public Node CurrentNode { get; }
Public ReadOnly Property CurrentNode As Node
| Type | Description |
|---|---|
| DevExpress.XtraEditors.Filtering.Node |
A Node object that identifies the clicked node.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CurrentNode 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.
how-to-create-and-register-custom-filter-editor-functions/CS/DXApplication5/Main.cs#L43
if(e.MenuType == FilterControlMenuType.Clause){
ClauseNode node = e.CurrentNode as ClauseNode;
if (node != null && node.Property.Type == typeof(DateTime))
how-to-create-and-register-custom-filter-editor-functions/VB/DXApplication5/Main.vb#L46
If e.MenuType = FilterControlMenuType.Clause Then
Dim node As ClauseNode = TryCast(e.CurrentNode, ClauseNode)
If node IsNot Nothing AndAlso node.Property.Type Is GetType(Date) Then
See Also
PopupMenuShowingEventArgs Class