Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal min As Decimal, _ ByVal max As Decimal, _ ByVal errorMessage As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim min As Decimal Dim max As Decimal Dim errorMessage As String Dim instance As New CurrencyCellType(min, max, 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
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, "Must Use Decimals"); FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c; |
Visual Basic | Copy Code |
---|---|
Dim c As New FarPoint.Web.Spread.CurrencyCellType(0.05, 300.5, "Must Use Decimals") FpSpread1.ActiveSheetView.Cells(0, 0).CellType = c |
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