Skip to main content
A newer version of this page is available. .

TokenEdit.SelectItem(Object) Method

Selects an item with specified value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

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. Note that the token should be within the control’s RepositoryItemTokenEdit.Tokens collection in order to be added.

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