GrapeCity.Xaml.SpreadSheet.UI
AutoFitColumn Method (GcSpreadSheet)
Example 


Automatically fits the viewport column.
Overload List
OverloadDescription
AutoFitColumn(Int32) Automatically fits the viewport column.  
AutoFitColumn(Int32,Boolean) Automatically fits the viewport column.  
Example
This example uses the AutoFitColumn method.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = "testAutoFit";
gcSpreadSheet1.Sheets[0].Cells[1, 1].FontSize = 14;

private void Button_Click_1(object sender, RoutedEventArgs e)
{
     gcSpreadSheet1.AutoFitColumn(1);
     gcSpreadSheet1.AutoFitRow(1);
}
GcSpreadSheet1.Sheets(0).Cells(1, 1).Value = "testAutoFit"
GcSpreadSheet1.Sheets(0).Cells(1, 1).FontSize = 12

Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
     GcSpreadSheet1.AutoFitRow(1)
     GcSpreadSheet1.AutoFitColumn(1)
End Sub
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options