windowsforms-devexpress-dot-xtraeditors-dot-tokenedit-be65c6fc.md
Fires before the drop-down window is closed and allows you to cancel the action.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event CancelEventHandler QueryCloseUp
<DXCategory("Events")>
Public Event QueryCloseUp As CancelEventHandler
The QueryCloseUp event's data class is CancelEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the event should be canceled. |
The drop-down window can be opened if the following options are enabled:
You can also use the MaxTokenCount property to specify the maximum number of tokens that the user can select. If this value is reached, the drop-down window is not opened.
You can call the ShowPopup() method in code to open the drop-down window.
The editor raises the following events before and after the drop-down window is opened:
When a user selects a token, the drop-down window is closed. You can call the ClosePopup() method in code to close the drop-down window.
The editor raises the following events before and after the drop-down window is closed:
QueryCloseUp event.See Also