Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TokenEdit.CloseTextEditor(Boolean) Method

Moves focus away from this TokenEdit‘s text box and optionally removes the last entered text.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual void CloseTextEditor(
    bool resetText
)

#Parameters

Name Type Description
resetText Boolean

true if the last entered text should be removed; otherwise, false.

#Remarks

The TokenEdit.ActivateTextEditor and CloseTextEditor methods allow you to manually activate or deactivate the TokenEdit‘s text box. To check whether this text box is currently active, use the TokenEdit.IsTextEditorActive property.

See Also