Gets or sets the formatter for a cell.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Formatter As IFormatter |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Cell
Dim value As IFormatter
instance.Formatter = value
value = instance.Formatter |
Property Value
IFormatter object containing the formatter for this cell
Remarks
Example
This example creates a Cell object and an IFormatter object. The IFormatter object is declared as a CurrencyFormatter and is then used as the formatter for the Cell object. To verify this, the Cell objects formatter is returned in a text box.
C# | Copy Code |
---|
FarPoint.Web.Spread.Cellmycell;
FarPoint.Web.Spread.Renderer.IFormatterformatter;
mycell=FpSpread1.Cells[0,0];
formatter=newFarPoint.Web.Spread.Renderer.CurrencyFormatter();
mycell.Formatter=formatter;
TextBox1.Text=Convert.ToString(mycell.Formatter); |
Visual Basic | Copy Code |
---|
DimmycellAsFarPoint.Web.Spread.Cell
DimformatterAsFarPoint.Web.Spread.Renderer.IFormatter
mycell=FpSpread1.Cells(0,0)
formatter=NewFarPoint.Web.Spread.Renderer.CurrencyFormatter()
mycell.Formatter=formatter
TextBox1.Text=Convert.ToString(mycell.Formatter) |
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