Spread for ASP.NET 11 Product Documentation
CurrencyCellType Constructor(Decimal,Decimal,String)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CurrencyCellType Class > CurrencyCellType Constructor : CurrencyCellType Constructor(Decimal,Decimal,String)
Minimum value of currency (as decimal)
Maximum value of currency (as decimal)
Message (as string) to display when input value is not valid
Creates a new currency cell with the specified minimum and maximum values and the specified error message.
Syntax
'Declaration
 
Public Function New( _
   ByVal min As Decimal, _
   ByVal max As Decimal, _
   ByVal errorMessage As String _
)
'Usage
 
Dim min As Decimal
Dim max As Decimal
Dim errorMessage As String
 
Dim instance As New CurrencyCellType(min, max, errorMessage)
public CurrencyCellType( 
   decimal min,
   decimal max,
   string errorMessage
)

Parameters

min
Minimum value of currency (as decimal)
max
Maximum value of currency (as decimal)
errorMessage
Message (as string) to display when input value is not valid
Example
This example creates a currency cell with the minimum and maximum values.
FarPoint.Web.Spread.CurrencyCellType c = new FarPoint.Web.Spread.CurrencyCellType(0.05, 300.5, "Must Use Decimals"); 
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c;
Dim c As New FarPoint.Web.Spread.CurrencyCellType(0.05, 300.5, "Must Use Decimals")
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = c
See Also

Reference

CurrencyCellType Class
CurrencyCellType Members
Overload List
ErrorMessage Property