Spread Windows Forms 12.0 Product Documentation
HyperLinkCellType Constructor(HyperLinkCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > HyperLinkCellType Class > HyperLinkCellType Constructor : HyperLinkCellType Constructor(HyperLinkCellType)
Specified hyperlink cell type from which to copy
Creates a new copy from the specified cell type ("Copy constructor").
Syntax
'Declaration
 
Public Function New( _
   ByVal g As HyperLinkCellType _
)
'Usage
 
Dim g As HyperLinkCellType
 
Dim instance As New HyperLinkCellType(g)
public HyperLinkCellType( 
   HyperLinkCellType g
)

Parameters

g
Specified hyperlink cell type from which to copy
Example
This example creates a hyperlink cell.
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();  
hlnkcell.Link = "http://spread.grapecity.com/";            
hlnkcell.LinkColor = Color.DarkRed;
hlnkcell.Text = "Web Site";
hlnkcell.VisitedLinkColor = Color.Gray;
fpSpread1.Sheets[0].Cells[2, 2].CellType = hlnkcell;
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell1 = new FarPoint.Win.Spread.CellType.HyperLinkCellType(hlnkcell);
fpSpread1.Sheets[0].Cells[2, 3].CellType = hlnkcell1;
Dim hlnkcell As New FarPoint.Win.Spread.CellType.HyperLinkCellType()
hlnkcell.Link = "http://spread.grapecity.com/"
hlnkcell.LinkColor = Color.DarkRed
hlnkcell.Text = "Web Site"
hlnkcell.VisitedLinkColor = Color.Gray
fpSpread1.Sheets(0).Cells(2, 2).CellType = hlnkcell
Dim hlnkcell1 As New FarPoint.Win.Spread.CellType.HyperLinkCellType(hlnkcell)
fpSpread1.Sheets(0).Cells(2, 3).CellType = hlnkcell1
See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members
Overload List