Back to Devexpress

Hyperlink.DisplayText Property

officefileapi-devexpress-dot-spreadsheet-dot-hyperlink.md

latest2.4 KB
Original Source

Hyperlink.DisplayText Property

Gets or sets the text displayed for a hyperlink in a cell.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
string DisplayText { get; set; }
vb
Property DisplayText As String

Property Value

TypeDescription
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.

See Also

How to: Add a Hyperlink to a Cell

Hyperlink Interface

Hyperlink Members

DevExpress.Spreadsheet Namespace