Spread ASP.NET 6.0 Product Documentation
Size Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > GeneralCellType Class : Size Property


Glossary Item Box

Gets or sets the size of the text box in characters.

Syntax

Visual Basic (Declaration) 
Public Property Size As Integer
Visual Basic (Usage)Copy Code
Dim instance As GeneralCellType
Dim value As Integer
 
instance.Size = value
 
value = instance.Size
C# 
public int Size {get; set;}

Property Value

Integer number of characters in the text box

Remarks

The value of this property must be greater than zero.

Example

This example creates a new GeneralCellType object, sets its Size and AllowWrap properties and then assigns the object to the first cell in the spreadsheet.
C#Copy Code
FarPoint.Web.Spread.GeneralCellTypeicell=NewFarPoint.Web.Spread.GeneralCellType();
stringStr;
Str="ThisisatestforaGeneralCellType.Itssizehasbeensetto20andtextshouldwraptomultiplelines.";
icell.AllowWrap=True;
icell.Size=90;
FpSpread1.ActiveSheetView.Cells[0,0].CellType=icell;
FpSpread1.ActiveSheetView.SetValue(0,0,Str);
FpSpread1.Sheets[0].Columns[0].Width=120;
FpSpread1.Sheets[0].Rows[0].Height=120;
Visual BasicCopy Code
DimicellAsNewFarPoint.Web.Spread.GeneralCellType()
DimStrAsString
Str="ThisisatestforaGeneralCellType.Itssizehasbeensetto20andtextshouldwraptomultiplelines."
icell.AllowWrap=True
icell.Size=90
FpSpread1.ActiveSheetView.Cells(0,0).CellType=icell
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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.