[]
Adjusts the height of a row range to fit the data in a cell range.
public virtual void AutoSizeRows(int topRow, int leftCol, int bottomRow, int rightCol, int extraSpace, AutoSizeFlags flags)
Type | Name | Description |
---|---|---|
int | topRow | Top row in the range. |
int | leftCol | Left column in the range. |
int | bottomRow | Bottom row in the range. |
int | rightCol | Right column in the range. |
int | extraSpace | Amount of extra space, in pixels, to add to the row heights. |
AutoSizeFlags | flags | Flags that control auto-sizing options. |
Adjusts the height of all rows to fit the data.
public virtual void AutoSizeRows()
Automatically size grid columns to fit the largest entry.
protected virtual void AutoSizeRows(Graphics g, int row1, int col1, int row2, int col2, int extra, AutoSizeFlags flags)
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.