'Declaration
Public Sub AutoFit( _ Optional ByVal minimumWidth As Double, _ Optional ByVal maximumWidth As Double, _ Optional ByVal startRowId As Integer, _ Optional ByVal endRowId As Integer _ )
'Usage
Dim instance As ColumnCollection Dim minimumWidth As Double Dim maximumWidth As Double Dim startRowId As Integer Dim endRowId As Integer instance.AutoFit(minimumWidth, maximumWidth, startRowId, endRowId)
public void AutoFit( double minimumWidth, double maximumWidth, int startRowId, int endRowId )
Parameters
- minimumWidth
The minimum desired Width when autoFitting a Column.
The default value is 0.
- maximumWidth
The maximum desired Width when autofitting a Column.
The default value is 255.
- startRowId
The Id for the Row from where to start calculating the width of the Cells' content.
- endRowId
The Id for the Row from where to end calculating the width of the Cells' content.