GrapeCity.Windows.SpreadSheet.Data Namespace > Cell Class : ShrinkToFit Property |
'Declaration <System.ComponentModel.DefaultValueAttribute()> Public Property ShrinkToFit As System.Boolean
'Usage Dim instance As Cell Dim value As System.Boolean instance.ShrinkToFit = value value = instance.ShrinkToFit
[System.ComponentModel.DefaultValue()] public System.bool ShrinkToFit {get; set;}
true
if the content supports shrink to fit; otherwise, false
. The default value is false
.GrapeCity.Windows.SpreadSheet.Data.Cell acell; acell = gcSpreadSheet1.Sheets[0].Cells[0, 0]; acell.Background = new System.Windows.Media.SolidColorBrush(Color.FromArgb(200, 180, 50, 25)); acell.Focusable = true; acell.ShrinkToFit = true; acell.Foreground = new System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 215, 100, 125)); listBox1.Items.Add(acell.ActualBackground.ToString()); listBox1.Items.Add(acell.ActualForeground.ToString()); listBox1.Items.Add(acell.ActualFocusable.ToString()); listBox1.Items.Add(acell.ActualShrinkToFit.ToString()); gcSpreadSheet1.Invalidate();
Dim acell As GrapeCity.Windows.SpreadSheet.Data.Cell acell = GcSpreadSheet1.Sheets(0).Cells(0, 0) acell.Background = New System.Windows.Media.SolidColorBrush(Color.FromArgb(200, 180, 50, 25)) acell.Focusable = True acell.ShrinkToFit = True acell.Foreground = New System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 215, 100, 125)) ListBox1.Items.Add(acell.ActualBackground.ToString()) ListBox1.Items.Add(acell.ActualForeground.ToString()) ListBox1.Items.Add(acell.ActualFocusable.ToString()) ListBox1.Items.Add(acell.ActualShrinkToFit.ToString()) GcSpreadSheet1.Invalidate()
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6