Skip to main content

TokenEdit.UncheckItem(Object) Method

Unchecks the token with the specified value in your TokenEdit control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void UncheckItem(
    object value
)

Parameters

Name Type Description
value Object

An Object that is the value of the token that needs to be unchecked.

Remarks

Depending on the RepositoryItemTokenEdit.CheckMode property value, users can select (check) one or multiple tokens.

The code sample below illustrates how to prevent checking tokens in your TokenEdit control by using UncheckItem.

void OnTokenEditTokenClick(object sender, TokenEditTokenClickEventArgs e) {
    TokenEdit tokenEdit = (TokenEdit)sender;
    tokenEdit.UncheckItem(e.Value);
}
See Also