Spread Windows Forms 12.0 Product Documentation
Reset Method (StyleInfo)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > StyleInfo Class : Reset Method
Resets all the style settings in the StyleInfo object to the default settings.
Syntax
'Declaration
 
Public Overrides Sub Reset() 
'Usage
 
Dim instance As StyleInfo
 
instance.Reset()
public override void Reset()
Remarks
This method resets all the style-related properties to their default values.
Example
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
DialogResult dlg;
si.BackColor = Color.Yellow;
fpSpread1.ActiveSheet.DefaultStyle = si;
dlg = MessageBox.Show("Reset the properties?");
if (dlg == DialogResult.OK)
{
si.Reset();
fpSpread1.ActiveSheet.DefaultStyle = si;
}
Dim si As New FarPoint.Win.Spread.StyleInfo
Dim dlg As DialogResult
si.BackColor = Color.Yellow
fpSpread1.ActiveSheet.DefaultStyle = si
dlg = MessageBox.Show("Reset the properties?")
If dlg = DialogResult.OK Then
si.Reset()
fpSpread1.ActiveSheet.DefaultStyle = si
End If
See Also

Reference

StyleInfo Class
StyleInfo Members