Back to Devexpress

TokenEdit.CheckItem(Object) Method

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

latest1.8 KB
Original Source

TokenEdit.CheckItem(Object) Method

Checks 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 CheckItem(
    object value
)
vb
Public Sub CheckItem(
    value As Object
)

Parameters

NameTypeDescription
valueObject

An Object that is the value of the token that will be checked.

|

Remarks

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

The code sample below illustrates how to select and check the January token.

csharp
tokenEdit.EditValue = "January";
    tokenEdit.CheckItem("January");
vb
tokenEdit.EditValue = "January"
    tokenEdit.CheckItem("January")

See Also

CheckMode

UncheckItem(Object)

TokenEdit Class

TokenEdit Members

DevExpress.XtraEditors Namespace