NativeExcel2 for .Net Developer's Reference

IHyperlink.Range Property

Returns an IRange interface that represents the range the specified hyperlink is attached to.

[Visual Basic]
PropertyRangeAsIRange
[C#]
IRangeRange{get;set;}
[C++]
__propertyIRange*get_Range();
__propertyvoidset_Range(IRange*);
[JScript]
functiongetRange():IRange
functionsetRange(IRange);

Example

This example changes the font size for range which attached to the first hyperlink on worksheet one.

[C#]
book.Worksheets[1].Hyperlinks[1].Range.Font.Size = 14;
[VisualBasic]
book.Worksheets(1).Hyperlinks(1).Range.Font.Size = 14
[C++]
book->Worksheets->Item[1]->Hyperlinks->Item[1]->Range->Font->Size = 14;

See Also

IHyperlink Interface | NativeExcel Namespace | IWorksheet.Hyperlinks Property | IRange.Hyperlinks Property | IHyperlinks Interface