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.SelectItem(Object) Method

Selects an item with specified value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void SelectItem(
    object value
)

#Parameters

Name Type Description
value Object

An Object that is the value of the token that should be selected.

#Remarks

This operation appends a token with specified value to the TokenEdit.SelectedItems collection. You can only add tokens that exist in the RepositoryItemTokenEdit.Tokens collection.

Note

The SelectItem method works in unbound mode only.

The code sample below illustrates how to select a token with the June value.

tokenEdit.EditValue = "January, February, March, April, May";
tokenEdit.SelectItem("June");
See Also