Spread for ASP.NET 8.0 Product Documentation
HyperLinkCellType Constructor(String,String,String)
Example 


URL to which to navigate when the hyperlink is clicked
Path and file name of the picture to display in the cell
String with hyperlink target window or frame
Creates a new hyperlink cell with the specified destination URL, image, and target.
Syntax
'Declaration
 
Public Function New( _
   ByVal url As String, _
   ByVal imageUrl As String, _
   ByVal target As String _
)
'Usage
 
Dim url As String
Dim imageUrl As String
Dim target As String
 
Dim instance As New HyperLinkCellType(url, imageUrl, target)
public HyperLinkCellType( 
   string url,
   string imageUrl,
   string target
)

Parameters

url
URL to which to navigate when the hyperlink is clicked
imageUrl
Path and file name of the picture to display in the cell
target
String with hyperlink target window or frame
Example
This example creates a hyperlink cell type with its URL, an image and a target window and assigns it to the first cell of the sheet.
    string Str = "img\\fplogo.jpg";
    FarPoint.Web.Spread.HyperLinkCellType hlcell = new FarPoint.Web.Spread.HyperLinkCellType("http://www.fpoint.com", Str,
"_self");
    FpSpread1.ActiveSheetView.Cells[0, 0].CellType = hlcell;
    FpSpread1.ActiveSheetView.Columns[0].Width = 150;
Dim Str As String = "img\fplogo.jpg"
Dim hlcell As New FarPoint.Web.Spread.HyperLinkCellType("http://www.fpoint.com", Str, "_self")
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = hlcell
FpSpread1.ActiveSheetView.Columns(0).Width = 150
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members
Overload List
NavigateUrl Property
ImageUrl Property
Target Property

 

 


Copyright © GrapeCity, inc. All rights reserved.