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 | cl |
The color of hyperlinks in layout item captions. |
#Remarks
A layout item caption can include any number of individual hyperlinks.
#Hyperlink Markup Syntax
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.
#Hyperlink Activation
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.
#Change Hyperlink Color at the Root Level
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.