Spread for ASP.NET 11 Product Documentation
Text Property (MutuallyExclusiveCheckBoxCellType)
Example 


FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > MutuallyExclusiveCheckBoxCellType Class : Text Property
Gets or sets the text of the mutually exclusive check box.
Syntax
'Declaration
 
Public Property Text As String
'Usage
 
Dim instance As MutuallyExclusiveCheckBoxCellType
Dim value As String
 
instance.Text = value
 
value = instance.Text
public string Text {get; set;}

Property Value

String containing the text
Example
This example creates four check boxes that uncheck themselves if another is checked.
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m.Text = "One";
m.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = m;
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m1 = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m1.Text = "Two";
m1.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[0, 1].CellType = m1;
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m11 = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m11.Text = "Three";
m11.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[1, 0].CellType = m11;
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m12 = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m12.Text = "Four";
m12.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = m12;
Dim m As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m.Text = "One"
m.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = m

Dim m1 As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m1.Text = "Two"
m1.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(0, 1).CellType = m1

Dim m11 As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m11.Text = "Three"
m11.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(1, 0).CellType = m11

Dim m12 As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m12.Text = "Four"
m12.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(1, 1).CellType = m12
See Also

Reference

MutuallyExclusiveCheckBoxCellType Class
MutuallyExclusiveCheckBoxCellType Members