TokenEdit.SelectItem(Object) Method
Selects an item with specified value.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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