Spread Windows Forms 11.0 Product Documentation
ResetCellPadding Method (StyleInfo)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > StyleInfo Class : ResetCellPadding Method
Resets the cell padding.
Syntax
'Declaration
 
Public Overridable Sub ResetCellPadding() 
'Usage
 
Dim instance As StyleInfo
 
instance.ResetCellPadding()
public virtual void ResetCellPadding()
Example
This example uses the ResetCellPadding method.
fpSpread1.Sheets[0].Cells[1, 1].Text = "Test";
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
si.CellPadding = new FarPoint.Win.Spread.CellPadding(4);
si.ResetCellPadding();
fpSpread1.ActiveSheet.DefaultStyle = si;
fpSpread1.Sheets(0).Cells(1, 1).Text = "Test"
Dim si As New FarPoint.Win.Spread.StyleInfo()
si.CellPadding = New FarPoint.Win.Spread.CellPadding(4)
si.ResetCellPadding()
fpSpread1.ActiveSheet.DefaultStyle = si
See Also

Reference

StyleInfo Class
StyleInfo Members