Spread Windows Forms 9.0 Product Documentation
TextTrue Property (CheckBoxCellType)
Example 


Gets or sets the text for the true state.
Syntax
'Declaration
 
Public Property TextTrue As String
'Usage
 
Dim instance As CheckBoxCellType
Dim value As String
 
instance.TextTrue = value
 
value = instance.TextTrue
public string TextTrue {get; set;}

Property Value

String containing the text for the true state
Remarks
This is the text that appears next to the check box when the box has a check in it, representing the true (checked) state. If this is not defined, the control displays the Caption text for the check box.
Example

This example sets the properties of a three-state check box in a cell and specifies the text for each state.

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;
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 Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

CheckBoxCellType Class
CheckBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.