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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > CheckBoxCellType Class > CheckBoxCellType Constructor : CheckBoxCellType Constructor(CheckBoxCellType)
Specified check box 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 CheckBoxCellType _
)
'Usage
 
Dim g As CheckBoxCellType
 
Dim instance As New CheckBoxCellType(g)
public CheckBoxCellType( 
   CheckBoxCellType g
)

Parameters

g
Specified check box cell type from which to copy
Example
This example creates check box cells.
FarPoint.Win.Spread.CellType.CheckBoxCellType ccell = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
ccell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft;
FarPoint.Win.Spread.CellType.CheckBoxCellType ccell1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(ccell);
ccell1.TextTrue = "True";
fpSpread1.Sheets[0].Cells[1, 1].CellType = ccell1;
Dim ccell As New FarPoint.Win.Spread.CellType.CheckBoxCellType()
ccell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft
Dim ccell1 As New FarPoint.Win.Spread.CellType.CheckBoxCellType(ccell)
ccell1.TextTrue = "True"
fpSpread1.Sheets(0).Cells(1, 1).CellType = ccell1
See Also

Reference

CheckBoxCellType Class
CheckBoxCellType Members
Overload List