SPREAD for ASP.NET 8.0J サンプルコード集 > セル型 > ハイパーリンク型セル > URL以外のテキストを表示する |
ハイパーリンク型セルを設定したセルのTextプロパティにテキストを設定します。
HyperLinkCellType hp = new HyperLinkCellType() { NavigateUrl = "http://www.grapecity.com/tools/" }; FpSpread1.Cells[0, 1].CellType = hp; FpSpread1.Cells[0, 1].Text = "GrapeCity";
Dim hp As New HyperLinkCellType() With { .NavigateUrl = http://www.grapecity.com/tools/ } FpSpread1.Cells(0, 1).CellType = hp FpSpread1.Cells(0, 1).Text = "GrapeCity"