Gets or sets whether the check box has three states.
Syntax
Visual Basic (Declaration) | |
---|
Public Property ThreeState As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As CheckBoxCellType
Dim value As Boolean
instance.ThreeState = value
value = instance.ThreeState |
C# | |
---|
public bool ThreeState {get; set;} |
Property Value
Boolean:
true if check box has three states;
false if only two
Remarks
Example
This example sets the properties of a three-state check box in a cell and specifies the text for each state.
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 |
Requirements
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
See Also