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 TextCellType
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
Example
This example 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 Basic | Copy 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also