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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.