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


GrapeCity.Xaml.SpreadSheet.UI Namespace > SheetView Class > AutoFitColumn Method : AutoFitColumn(Int32) Method
The column index to automatically fit.
Automatically fits the viewport column.
Syntax
'Declaration
 
Public Overloads Sub AutoFitColumn( _
   ByVal column As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
 
instance.AutoFitColumn(column)
public void AutoFitColumn( 
   int column
)

Parameters

column
The column index to automatically fit.
Example
This example uses the AutoFitColumn method.
GcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "test";
GcSpreadSheet1.View.AutoFitColumn(0, false);
//GcSpreadSheet1.View.AutoFitColumn(0);
GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "test"
GcSpreadSheet1.View.AutoFitColumn(0, False)
'GcSpreadSheet1.View.AutoFitColumn(0)
See Also

Reference

SheetView Class
SheetView Members
Overload List