Back to Devexpress

PopupMenuShowingEventArgs.CurrentNode Property

windowsforms-devexpress-dot-xtraeditors-dot-filtering-dot-popupmenushowingeventargs.md

latest2.6 KB
Original Source

PopupMenuShowingEventArgs.CurrentNode Property

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

Declaration

csharp
public Node CurrentNode { get; }
vb
Public ReadOnly Property CurrentNode As Node

Property Value

TypeDescription
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

csharp
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

vb
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

PopupMenuShowingEventArgs Members

DevExpress.XtraEditors.Filtering Namespace