GrapeCity.Xaml.SpreadSheet.Data
ResetFormatter Method (Cell)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Cell Class : ResetFormatter Method
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 GrapeCity.Xaml.SpreadSheet.Data.GeneralFormatter("0.00");
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = 123;

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

Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        GcSpreadSheet1.Sheets(0).Cells(1, 1).ResetFormatter()        
End Sub
See Also

Reference

Cell Class
Cell Members