Spread ASP.NET 6.0 Product Documentation
CurrencyCellType Constructor(Decimal,Decimal)
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CurrencyCellType Class > CurrencyCellType Constructor : CurrencyCellType Constructor(Decimal,Decimal)


min
Minimum value of currency (as decimal)
max
Maximum value of currency (as decimal)

Glossary Item Box

Creates a new currency cell with the specified minimum and maximum values.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal min As Decimal, _
   ByVal max As Decimal _
)
Visual Basic (Usage)Copy Code
Dim min As Decimal
Dim max As Decimal
 
Dim instance As New CurrencyCellType(min, max)
C# 
public CurrencyCellType( 
   decimal min,
   decimal max
)

Parameters

min
Minimum value of currency (as decimal)
max
Maximum value of currency (as decimal)

Example

This example creates a currency cell with the minimum and maximum values.
C#Copy Code
FarPoint.Web.Spread.CurrencyCellType c = new FarPoint.Web.Spread.CurrencyCellType(0.05, 300.5); 
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c;
Visual BasicCopy Code
Dim c As New FarPoint.Web.Spread.CurrencyCellType(0.05, 300.5)
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

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