Spread for ASP.NET 7.0 Product Documentation
TextCellType Constructor
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TextCellType Class : TextCellType Constructor


Glossary Item Box

Creates a new text cell.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New TextCellType()
C# 
public TextCellType()

Example

This example creates an instance of the text cell type that allows multiple lines in a text cell.
C#Copy Code
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); 
Visual BasicCopy Code
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) 

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.