Skip to main content
Row

Hyperlink.Range Property

Gets the cell range that contains the hyperlink.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

CellRange Range { get; }

Property Value

Type Description
CellRange

A CellRange object.

Remarks

Use the Range property to obtain the cell range to which the hyperlink is attached. When an end-user clicks any cell in this range, the hyperlink navigates to the address specified by the HyperlinkBase.Uri property. To add a hyperlink to a cell range, use the HyperlinkCollection.Add method and pass the required CellRange object as a parameter. The top left cell value of the range with the hyperlink is set to the Hyperlink.DisplayText property value.

You can associate a hyperlink not only with a cell range, but with a picture. To do this, use the Shape.InsertHyperlink method. Hyperlinks associated with pictures are represented by the ShapeHyperlink objects.

See Also