Back to Devexpress

TokenEdit.CheckedItem Property

windowsforms-devexpress-dot-xtraeditors-dot-tokenedit-4caf4e3e.md

latest3.1 KB
Original Source

TokenEdit.CheckedItem Property

Gets the currently checked token within this TokenEdit.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public TokenEditToken CheckedItem { get; }
vb
<Browsable(False)>
Public ReadOnly Property CheckedItem As TokenEditToken

Property Value

TypeDescription
TokenEditToken

A TokenEditToken that is the currently checked token within this TokenEdit.

|

Remarks

If the TokenEdit can have only one checked item at a time, use the CheckedItem property to access this item. Otherwise, use the TokenEdit.CheckedItems collection to access all currently checked tokens.

To check or uncheck a token from your code, use the TokenEdit.CheckItem or the TokenEdit.UncheckItem methods.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckedItem property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-tokenedit-checked-tokens/CS/TokenEdit_Glyph_InEndOfToken/CustomTokenEdit/CustomTokenEdit.cs#L41

csharp
public CustomTokenEditToken CheckedItem { get { return base.CheckedItem as CustomTokenEditToken;} }
public CustomTokenEditCheckedItemCollection CheckedItems { get { return base.CheckedItems as CustomTokenEditCheckedItemCollection; } }

See Also

CheckMode

CheckedItems

CheckItem(Object)

UncheckItem(Object)

TokenEdit Class

TokenEdit Members

DevExpress.XtraEditors Namespace