Spread Silverlight Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Column Class / ResetShrinkToFit Method
Example


In This Topic
    ResetShrinkToFit Method (Column)
    In This Topic
    Resets the shrink to fit setting for the row and causes the row to inherit the shrink to fit setting from the default row.
    Syntax
    'Declaration
     
    Public Sub ResetShrinkToFit() 
    'Usage
     
    Dim instance As Column
     
    instance.ResetShrinkToFit()
    public void ResetShrinkToFit()
    Example
    This example uses the ResetShrinkToFit method.
    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