Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Hyperlink.DisplayText Property

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

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

string DisplayText { get; set; }

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

See Also