Visual Basic (Declaration) | |
---|---|
Public Function New() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New CheckBoxCellType() |
C# | |
---|---|
public CheckBoxCellType() |
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 Basic | Copy 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 |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2