Back to Devexpress

TokenEdit.UncheckItem(Object) Method

windowsforms-devexpress-dot-xtraeditors-dot-tokenedit-dot-uncheckitem-x28-system-dot-object-x29.md

latest2.1 KB
Original Source

TokenEdit.UncheckItem(Object) Method

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void UncheckItem(
    object value
)
vb
Public Sub UncheckItem(
    value As Object
)

Parameters

NameTypeDescription
valueObject

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.

csharp
void OnTokenEditTokenClick(object sender, TokenEditTokenClickEventArgs e) {
    TokenEdit tokenEdit = (TokenEdit)sender;
    tokenEdit.UncheckItem(e.Value);
}
vb
Private Sub OnTokenEditTokenClick(ByVal sender As Object, ByVal e As TokenEditTokenClickEventArgs)
    Dim tokenEdit As TokenEdit = DirectCast(sender, TokenEdit)
    tokenEdit.UncheckItem(e.Value)
End Sub

See Also

CheckMode

CheckItem(Object)

TokenEdit Class

TokenEdit Members

DevExpress.XtraEditors Namespace