GrapeCity.Xaml.SpreadSheet.Data
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 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
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options