Hyperlink.DisplayText Property
Gets or sets the text displayed for a hyperlink in a cell.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
String | A String value that specifies the text to be displayed for a hyperlink. |
Remarks
The DisplayText property specifies the top left cell value of the range into which a hyperlink is added (Hyperlink.Range). You can set this text when adding a hyperlink to a cell range via the HyperlinkCollection.Add method (see the How to: Add a Hyperlink to a Cell example). By default, the hyperlink text is the HyperlinkBase.Uri property value.
After you remove a hyperlink object, its text remains in a cell. See the How to: Clear Cells of Content, Formatting, Hyperlinks and Comments example.
To specify the text for a hyperlink tooltip, use the HyperlinkBase.TooltipText property.