Spread for ASP.NET 7.0 Product Documentation
CurrencyCellType Constructor()
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CurrencyCellType Class > CurrencyCellType Constructor : CurrencyCellType Constructor()


Glossary Item Box

Creates a new currency cell.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New CurrencyCellType()
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 BasicCopy 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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.