Spread for ASP.NET 8.0 Product Documentation
Formatter Property (Row)
Example 


Gets or sets the default formatter for cells in this row.
Syntax
'Declaration
 
Public Property Formatter As IFormatter
'Usage
 
Dim instance As Row
Dim value As IFormatter
 
instance.Formatter = value
 
value = instance.Formatter
public IFormatter Formatter {get; set;}

Property Value

IFormatter object containing the formatter for cells in this row
Example
This example creates a Row object and an IFormatter object. The IFormatter object is declared as a CurrencyFormatter and is then used as the formatter for the Row object. To verify this, the Row object's formatter is returned in a text box.
FarPoint.Web.Spread.Row myrow; 
FarPoint.Web.Spread.Renderer.IFormatter formatter; 
myrow = FpSpread1.ActiveSheetView.Rows[0]; 
formatter = new FarPoint.Web.Spread.Renderer.CurrencyFormatter(); 
myrow.Formatter = formatter; 
TextBox1.Text = Convert.ToString(myrow.Formatter);
Dim myrow As FarPoint.Web.Spread.Row
Dim formatter As FarPoint.Web.Spread.Renderer.IFormatter    
myrow = FpSpread1.ActiveSheetView.Rows(0)
formatter = New FarPoint.Web.Spread.Renderer.CurrencyFormatter()
myrow.Formatter = formatter
TextBox1.Text = Convert.ToString(myrow.Formatter)
Requirements

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

See Also

Reference

Row Class
Row Members
IFormatter Interface

 

 


Copyright © GrapeCity, inc. All rights reserved.