Skip to main content
All docs
V24.2

TdxLayoutItemOptions.HyperlinkColor Property

Specifies the color of hyperlinks in layout item captions.

Declaration

property HyperlinkColor: TColor read; write; default clDefault;

Property Value

Type Default Description
TColor clDefault

The color of hyperlinks in layout item captions.

Remarks

A layout item caption can include any number of individual hyperlinks.

Use the following BBCode-inspired markup syntax to define a hyperlink within a string assigned to a layout control item’s CaptionOptions.Text property:

  [URL=https://www.devexpress.com]DevExpress[/URL]

Refer to the following topic for detailed information on all supported text formatting options: BBCode-Inspired Text Formatting Markup.

A click on a hyperlink displays its target in a new tab of the default system browser[1] or invokes the default mail client[2].

You can handle the OnHyperlinkClick event of a layout item to execute custom code in response to a click on a hyperlink or prevent hyperlink activation depending on certain conditions.

Use the HyperlinkColor property to change the color of hyperlinks in captions of all layout items whose CaptionOptions.HyperlinkColor property is set to clDefault.

Default Value

The HyperlinkColor property’s default value is clDefault.

The default HyperlinkColor property value indicates that that all layout items whose CaptionOptions.HyperlinkColor property is set to clDefault use the hyperlink color defined through look & feel settings.

Footnotes
  1. A click on a hyperlink invokes the default browser if the hyperlink target uses the HTTPS or HTTP URI scheme.

  2. A click on a hyperlink invokes the default mail client and creates an empty e-mail for the specified address if the hyperlink target uses the MAILTO URI scheme.

See Also