officefileapi-devexpress-dot-spreadsheet-dot-hyperlink-6aa1b3fb.md
Gets the cell range that contains the hyperlink.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
CellRange Range { get; }
ReadOnly Property Range As CellRange
| Type | Description |
|---|---|
| CellRange |
A CellRange object.
|
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