Adjusts the width of a column range to fit the data in a cell range.
Syntax
'Declaration
Public Overloads Overridable Sub AutoSizeCols( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As AutoSizeFlags _
)
public virtual void AutoSizeCols(
int ,
int ,
int ,
int ,
int ,
AutoSizeFlags
)
Parameters
- topRow
- Top row in the range.
- leftCol
- Left column in the range.
- bottomRow
- Bottom row in the range.
- rightCol
- Right column in the range.
- extraSpace
- Amount of extra space, in pixels, to add to the column widths.
- flags
- Flags that control auto-sizing options.
See Also