[]
Automatically size grid columns to fit the largest entry.
protected override void AutoSizeCols(Graphics g, int row1, int col1, int row2, int col2, int extra, AutoSizeFlags flags)
Protected Overrides Sub AutoSizeCols(g As Graphics, row1 As Integer, col1 As Integer, row2 As Integer, col2 As Integer, extra As Integer, flags As AutoSizeFlags)
| Type | Name | Description |
|---|---|---|
| Graphics | g | Graphics object used to measure the cell contents. |
| int | row1 | Index of the first row to be measured. |
| int | col1 | Index of the first column to be measured. |
| int | row2 | Index of the last row to be measured. |
| int | col2 | Index of the first column to be measured. |
| int | extra | Extra space, in twips, to add to the largest entry. |
| AutoSizeFlags | flags | AutoSizeFlags value that specifies auto sizing behavior. |
This method is for internal use. It allows inherited classes to customize the grid appearance.