Spread for ASP.NET 11 Product Documentation
TextCellType Constructor
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TextCellType Class : TextCellType Constructor
Creates a new text cell.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New TextCellType()
public TextCellType()
Example
This example creates an instance of the text cell type that allows multiple lines in a text cell.
FarPoint.Web.Spread.TextCellType t = new FarPoint.Web.Spread.TextCellType();
string s = "This is a test\r\nfor multiline";
t.Multiline = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = t;
FpSpread1.ActiveSheetView.SetText(0, 0, s); 
Dim t As New FarPoint.Web.Spread.TextCellType
Dim s As String = "This is a test" & Chr(13) & Chr(10) & "for multiline"
t.Multiline = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = t
FpSpread1.ActiveSheetView.SetText(0, 0, s) 
See Also

Reference

TextCellType Class
TextCellType Members