GrapeCity.Xaml.SpreadSheet.Data Namespace > StyleInfo Class : ShrinkToFit Property |
'Declaration <DefaultValueAttribute()> Public Property ShrinkToFit As Boolean
'Usage Dim instance As StyleInfo Dim value As Boolean instance.ShrinkToFit = value value = instance.ShrinkToFit
[DefaultValue()] public bool ShrinkToFit {get; set;}
true
if the content supports shrink to fit; otherwise, false
. The default value is false
.GrapeCity.Xaml.SpreadSheet.Data.StyleInfo style = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo(); style.ShrinkToFit = true; style.Background = new SolidColorBrush(Windows.UI.Colors.Bisque); style.Name = "style1"; gcSpreadSheet1.Sheets[0].NamedStyles.Add(style); gcSpreadSheet1.Sheets[0].Rows[1].StyleName = "style1"; //style.ResetShrinkToFit();
Dim style As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo() style.ShrinkToFit = True style.Background = New SolidColorBrush(Windows.UI.Colors.Bisque) style.Name = "style1" GcSpreadSheet1.Sheets(0).NamedStyles.Add(style) GcSpreadSheet1.Sheets(0).Rows(1).StyleName = "style1" 'style.ResetShrinkToFit()
Target Platforms: Windows Server 2012, Windows RT