Back to Devexpress

Hyperlink.Range Property

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

latest2.5 KB
Original Source

Hyperlink.Range Property

Gets the cell range that contains the hyperlink.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
CellRange Range { get; }
vb
ReadOnly Property Range As CellRange

Property Value

TypeDescription
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

How to: Add a Hyperlink to a Cell

Hyperlink Interface

Hyperlink Members

DevExpress.Spreadsheet Namespace