Back to Devexpress

RepositoryItemHypertextLabel Class

windowsforms-devexpress-dot-xtraeditors-dot-repository-04b08942.md

latest3.4 KB
Original Source

RepositoryItemHypertextLabel Class

When embedded in a container’s column/cell, allows cell text to be formatted using HTML tags. No editing is supported for these cells.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class RepositoryItemHypertextLabel :
    RepositoryItemButtonEdit
vb
Public Class RepositoryItemHypertextLabel
    Inherits RepositoryItemButtonEdit

Remarks

The RepositoryItemHypertextLabel allows you to format static text within cells in containers (Data Grid, Tree List, etc.) using a simplified HTML syntax. HTML text formatting is enabled and text editing is disabled when using the RepositoryItemHypertextLabel.

Steps:

  1. Create a RepositoryItemHypertextLabel object and add it to the container’s editor repository (EditorContainer.RepositoryItems or ComponentEditorContainer.RepositoryItems). You may also use an external repository to share a repository item between multiple containers. See PersistentRepository to learn more.
  2. Assign the created RepositoryItemHypertextLabel to a certain column/cell in the container control (e.g., by using the GridColumn.ColumnEdit, TreeListColumn.ColumnEdit, BarEditItem.Edit, etc.)
  3. Provide data for the RepositoryItemHypertextLabel.

Examples

A standalone version of the RepositoryItemHypertextLabel object is HyperlinkLabelControl. Use this control to display static HTML text.

Inheritance

Object MarshalByRefObject Component DevExpress.XtraEditors.ComponentBase RepositoryItem RepositoryItemTextEdit RepositoryItemButtonEdit RepositoryItemHypertextLabel

See Also

RepositoryItemHypertextLabel Members

DevExpress.XtraEditors.Repository Namespace