NativeExcel for .Net Developer's Reference

IHyperlink.TextToDisplay Property

Returns or sets the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink.

[Visual Basic]
PropertyTextToDisplayAsString
[C#]
stringTextToDisplay{get;set;}
[C++]
__propertyString*get_TextToDisplay();
__propertyvoidset_TextToDisplay(String*);
[JScript]
functiongetTextToDisplay():String
functionsetTextToDisplay(String);

Example

This example sets the text to be displayed for the first hyperlink on worksheet one.

[C#]
book.Worksheets[1].Hyperlinks[1].TextToDisplay = "NikaSoft Home Page";
[VisualBasic]
book.Worksheets(1).Hyperlinks(1).TextToDisplay = "NikaSoft Home Page"
[C++]
book->Worksheets->Item[1]->Hyperlinks->Item[1]->TextToDisplay = S"NikaSoft Home Page";

See Also

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