Spread Silverlight Documentation
ResetShrinkToFit Method (StyleInfo)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > StyleInfo Class : ResetShrinkToFit Method
Resets the ShrinkToFit property to its default value.
Syntax
'Declaration
 
Public Overridable Sub ResetShrinkToFit() 
'Usage
 
Dim instance As StyleInfo
 
instance.ResetShrinkToFit()
public virtual void ResetShrinkToFit()
Example
This example uses the ResetShrinkToFit method.
GrapeCity.Windows.SpreadSheet.Data.StyleInfo style = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo();
style.ShrinkToFit = true;
style.Background = new SolidColorBrush(Colors.Bisque);
style.Name = "style1";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(style);
gcSpreadSheet1.Sheets[0].Rows[1].StyleName = "style1";
//style.ResetShrinkToFit();
gcSpreadSheet1.Invalidate();
Dim style As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo()
style.ShrinkToFit = True
style.Background = New SolidColorBrush(Colors.Bisque)
style.Name = "style1"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(style)
GcSpreadSheet1.Sheets(0).Rows(1).StyleName = "style1"
'style.ResetShrinkToFit()
GcSpreadSheet1.Invalidate()
See Also

Reference

StyleInfo Class
StyleInfo Members