Creates a new currency cell.
Syntax
Visual Basic (Declaration) | |
---|
Public Function New() |
C# | |
---|
public CurrencyCellType() |
Example
This example creates a spreadsheet with 7 columns and 50 rows. It then creates a CurrencyCell object. A loop assigns the cells in the first column to be currency cells and places values in them.
C# | Copy Code |
---|
FarPoint.Web.Spread.CurrencyCellType c = new FarPoint.Web.Spread.CurrencyCellType;
c.CssClass = "CssStyle1";
c.ErrorMessage = "You must use numbers!!";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c;
|
Visual Basic | Copy Code |
---|
Dim c As New FarPoint.Web.Spread.CurrencyCellType
c.CssClass = "CssStyle1"
c.ErrorMessage = "You must use numbers!!"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = c |
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