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


Glossary Item Box

Gets or sets whether the cell allows multiple lines of text.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Multiline As Boolean
Visual Basic (Usage)Copy Code
Dim instance As GeneralCellType
Dim value As Boolean
 
instance.Multiline = value
 
value = instance.Multiline
C# 
public virtual bool Multiline {get; set;}

Property Value

true if multiple lines are allowed; false otherwise

Remarks

This property determines whether the cell allows multiple lines of text by accepting <CR><LF> (carriage return, line-feed) to indicate a new line.

Example

C#Copy Code
FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType();
g.Multiline = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
FpSpread1.ActiveSheetView.Cells[0, 0].Text = "This is a test for multiline";
Visual BasicCopy Code
Dim g As New FarPoint.Web.Spread.GeneralCellType
g.Multiline = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = g
FpSpread1.ActiveSheetView.Cells(0, 0).Text = "This is a test for multiline"

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.