windowsforms-devexpress-dot-xtraeditors-dot-tokenedit-496f5fde.md
Fires when the drop-down window is about to be closed and allows you to get and update the selected token.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event CloseUpEventHandler CloseUp
<DXCategory("Events")>
Public Event CloseUp As CloseUpEventHandler
The CloseUp event's data class is CloseUpEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| AcceptValue | Gets or sets a value indicating whether CloseUpEventArgs.Value should be accepted or discarded. |
| CloseMode | Gets a value indicating how the popup editor’s dropdown window was closed. |
| PressedButton | Returns which popup button has been pressed by an end-user. |
| Value | Gets or sets a value to assign to the editor’s edit value. |
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:
CloseUp event.See Also