GrapeCity.Xaml.SpreadSheet.Data Namespace > Cell Class : ShrinkToFit Property |
'Declaration <DefaultValueAttribute()> Public Property ShrinkToFit As Boolean
'Usage Dim instance As Cell 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
.gcSpreadSheet1.Sheets[0].Cells[1,1].Text = "Shrink To Fit Test"; gcSpreadSheet1.Sheets[0].Cells[1, 1].ShrinkToFit = true; gcSpreadSheet1.Sheets[0].Cells[2, 1].Text = "Shrink To Fit Test"; gcSpreadSheet1.Sheets[0].Cells[2, 1].ShrinkToFit = false;
GcSpreadSheet1.Sheets(0).Cells(1,1).Text = "Shrink To Fit Test" GcSpreadSheet1.Sheets(0).Cells(1,1).ShrinkToFit = True GcSpreadSheet1.Sheets(0).Cells(2,1).Text = "Shrink To Fit Test" GcSpreadSheet1.Sheets(0).Cells(2,1).ShrinkToFit = False
Target Platforms: Windows Server 2012, Windows RT