GrapeCity.Xaml.SpreadSheet.Data
ShrinkToFit Property (Column)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Column Class : ShrinkToFit Property
Gets or sets whether to support shrink to fit.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property ShrinkToFit As Boolean
'Usage
 
Dim instance As Column
Dim value As Boolean
 
instance.ShrinkToFit = value
 
value = instance.ShrinkToFit
[DefaultValue()]
public bool ShrinkToFit {get; set;}

Property Value

true if the content supports shrink to fit; otherwise, false. The default value is false.
Example
This example sets the ShrinkToFit property.
gcSpreadSheet1.ActiveSheet.Columns[1].Tag = "test";
gcSpreadSheet1.ActiveSheet.Columns[1].TabStop = false;
gcSpreadSheet1.ActiveSheet.Columns[1].ShrinkToFit = true;
gcSpreadSheet1.ActiveSheet.Cells[0, 1].Text = "Column with tags";
//gcSpreadSheet1.ActiveSheet.Columns[1].ResetTabStop();
//gcSpreadSheet1.ActiveSheet.Columns[1].ResetShrinkToFit();
GcSpreadSheet1.ActiveSheet.Columns(1).Tag = "test"
GcSpreadSheet1.ActiveSheet.Columns(1).TabStop = False
GcSpreadSheet1.ActiveSheet.Columns(1).ShrinkToFit = True
GcSpreadSheet1.ActiveSheet.Cells(0, 1).Text = "Column with tags"
'GcSpreadSheet1.ActiveSheet.Columns(1).ResetTabStop()
'GcSpreadSheet1.ActiveSheet.Columns(1).ResetShrinkToFit()
See Also

Reference

Column Class
Column Members