Spread WPF Documentation
ResetFormatter Method (Cell)
Example 


Resets the formatter for the cell and causes the cell to inherit the formatter from the default cell.
Syntax
'Declaration
 
Public Sub ResetFormatter() 
'Usage
 
Dim instance As Cell
 
instance.ResetFormatter()
public void ResetFormatter()
Example
This example uses the ResetFormatter method.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Formatter = new GeneralFormatter("0.00");
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = 123;
gcSpreadSheet1.Invalidate();

private void Button_Click(object sender, RoutedEventArgs e)
{
    gcSpreadSheet1.Sheets[0].Cells[1, 1].ResetFormatter();
    gcSpreadSheet1.Invalidate();
}
Dim formatter As New GeneralFormatter("0.00")
GcSpreadSheet1.Sheets(0).Cells(1, 1).Formatter = formatter
GcSpreadSheet1.Sheets(0).Cells(1, 1).Value = 123
GcSpreadSheet1.Invalidate()

Private Sub Button_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
        GcSpreadSheet1.Sheets(0).Cells(1, 1).ResetFormatter()
        GcSpreadSheet1.Invalidate()
End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.