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


The column index to automatically fit.
The flag indicates whether sheetArea is a row header.
Automatically fits the viewport column.
Syntax
'Declaration
 
Public Overloads Sub AutoFitColumn( _
   ByVal column As Integer, _
   ByVal isRowHeader As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim isRowHeader As Boolean
 
instance.AutoFitColumn(column, isRowHeader)
public void AutoFitColumn( 
   int column,
   bool isRowHeader
)

Parameters

column
The column index to automatically fit.
isRowHeader
The flag indicates whether sheetArea is a row header.
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)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options