Spread for ASP.NET 10 Product Documentation
Multiline Property (GeneralCellType)
Example 


Gets or sets whether the cell allows multiple lines of text.
Syntax
'Declaration
 
Public Overridable Property Multiline As Boolean
'Usage
 
Dim instance As GeneralCellType
Dim value As Boolean
 
instance.Multiline = value
 
value = instance.Multiline
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
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";
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

GeneralCellType Class
GeneralCellType Members
AllowWrap Property

 

 


Copyright © GrapeCity, inc. All rights reserved.