Spread Windows Forms 10.0 Product Documentation
CurrencyCellType Constructor(CurrencyCellType)
Example 


Specified currency cell type from which to copy
Creates a new copy from the specified cell type ("Copy constructor").
Syntax
'Declaration
 
Public Function New( _
   ByVal g As CurrencyCellType _
)
'Usage
 
Dim g As CurrencyCellType
 
Dim instance As New CurrencyCellType(g)
public CurrencyCellType( 
   CurrencyCellType g
)

Parameters

g
Specified currency cell type from which to copy
Example
This example creates a currency cell.
FarPoint.Win.Spread.CellType.CurrencyCellType currcell = new FarPoint.Win.Spread.CellType.CurrencyCellType();
currcell.CurrencySymbol = "CN$";
currcell.DecimalPlaces = 2;
currcell.DecimalSeparator = "#";
currcell.FixedPoint = true;           
currcell.ShowCurrencySymbol = true;
currcell.ShowSeparator = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = currcell;
fpSpread1.Sheets[0].Cells[1, 1].Value = 321.98;

fpSpread1.Sheets[0].Cells[1,0].CellType = new FarPoint.Win.Spread.CellType.CurrencyCellType(currcell);
fpSpread1.Sheets[0].Cells[1, 0].Value = 35.32;
Dim currcell As New FarPoint.Win.Spread.CellType.CurrencyCellType()
currcell.CurrencySymbol = "CN$"
currcell.DecimalPlaces = 2
currcell.DecimalSeparator = "#"
currcell.FixedPoint = True
currcell.ShowCurrencySymbol = True
currcell.ShowSeparator = True
FpSpread1.Sheets(0).Cells(1, 1).CellType = currcell
FpSpread1.Sheets(0).Cells(1, 1).Value = 321.98
FpSpread1.Sheets(0).Cells(1, 0).CellType = New FarPoint.Win.Spread.CellType.CurrencyCellType(currcell)
FpSpread1.Sheets(0).Cells(1, 0).Value = 35.32
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

CurrencyCellType Class
CurrencyCellType Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.