Gets or sets whether the cell allows text to wrap to multiple lines. Wrapping only occurs on word breaks.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property AllowWrap As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As TextCellType
Dim value As Boolean
instance.AllowWrap = value
value = instance.AllowWrap |
C# | |
---|
public virtual bool AllowWrap {get; set;} |
Property Value
true to allow wrapping to multiple lines;
false otherwise
Remarks
Example
This example creates a new TextCellType object, sets its Size and AllowWrap properties and then assigns the object to the first cell in the spreadsheet.
Visual Basic | Copy Code |
---|
DimtcellAsNewFarPoint.Web.Spread.TextCellType()
DimStrAsString
Str="ThisisatestforaTextCellType.Itssizehasbeensetto20andtextshouldwraptomultiplelines."
tcell.AllowWrap=True
tcell.Size=90
FpSpread1.ActiveSheetView.Cells(0,0).CellType=tcell
FpSpread1.ActiveSheetView.SetValue(0,0,Str)
FpSpread1.Sheets(0).Columns(0).Width=120
FpSpread1.Sheets(0).Rows(0).Height=120 |
C# | Copy Code |
---|
FarPoint.Web.Spread.TextCellTypetcell=NewFarPoint.Web.Spread.TextCellType();
stringStr;
Str="ThisisatestforaTextCellType.Thesizehasbeensetto20andtextshouldwraptomultiplelines.";
tcell.AllowWrap=True;
tcell.Size=90;
FpSpread1.ActiveSheetView.Cells[0,0].CellType=tcell;
FpSpread1.ActiveSheetView.SetValue(0,0,Str);
FpSpread1.Sheets[0].Columns[0].Width=120;
FpSpread1.Sheets[0].Rows[0].Height=120; |
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