Skip to main content
A newer version of this page is available. .

RepositoryItemTokenEdit.Tokens Property

Provides access to this TokenEdit control’s token collection.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Behavior")]
public TokenEditTokenCollection Tokens { get; }

Property Value

Type Description
DevExpress.XtraEditors.TokenEditTokenCollection

A DevExpress.XtraEditors.TokenEditTokenCollection object that stores this TokenEdit control’s tokens.

Remarks

Tokens stored within the Tokens collection are divided into two groups.

  • Predefined tokens, added to the Tokens collection in code or at design-time via the editor’s smart tag (see the figure below).

    TokenEdit - Edit History Collection

  • Tokens added to the Tokens collection after the application was launched. This requires the RepositoryItemTokenEdit.TokenPopulateMode property set to the Default value. Refer to this link for details.

Items stored within the Tokens collection are displayed within the editor’s drop-down list if it is enabled (see the RepositoryItemTokenEdit.ShowDropDown property). See the Token Edit Control topic to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Tokens 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.

See Also