Spread Windows Forms 7.0 Product Documentation
CheckBoxCellType Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > CheckBoxCellType Class > CheckBoxCellType Constructor : CheckBoxCellType Constructor()


Glossary Item Box

Creates a new check box cell with default settings.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New CheckBoxCellType()
C# 
public CheckBoxCellType()

Example

This example creates a cell of this type, sets properties of this cell type, and assigns this cell type to a cell.
C#Copy Code
FarPoint.Win.Spread.CellType.CheckBoxCellType ckbxcell = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
ckbxcell.ThreeState = true;
ckbxcell.TextTrue ="Checked";
ckbxcell.TextFalse ="Unchecked";
ckbxcell.TextIndeterminate = "Not Sure";
fpSpread1.Sheets[0].Cells[1,2].CellType = ckbxcell;
Visual BasicCopy Code
Dim ckbxcell As New FarPoint.Win.Spread.CellType.CheckBoxCellType()
ckbxcell.ThreeState = True
ckbxcell.TextTrue = "Checked"
ckbxcell.TextFalse = "Unchecked"
ckbxcell.TextIndeterminate = "Not Sure"
FpSpread1.Sheets(0).Cells(1,2).CellType = ckbxcell

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.