[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.AutoSizeRows

AutoSizeRows Method

AutoSizeRows(int, int, int, int, int, AutoSizeFlags)

Adjusts the height of a row range to fit the data in a cell range.

Declaration
public virtual void AutoSizeRows(int topRow, int leftCol, int bottomRow, int rightCol, int extraSpace, AutoSizeFlags flags)
Parameters
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.

AutoSizeRows()

Adjusts the height of all rows to fit the data.

Declaration
public virtual void AutoSizeRows()

AutoSizeRows(Graphics, int, int, int, int, int, AutoSizeFlags)

Automatically size grid columns to fit the largest entry.

Declaration
protected virtual void AutoSizeRows(Graphics g, int row1, int col1, int row2, int col2, int extra, AutoSizeFlags flags)
Parameters
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.

Remarks

This method is for internal use. It allows inherited classes to customize the grid appearance.