[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGrid.AutoSizeCols

AutoSizeCols Method

AutoSizeCols(Graphics, int, int, int, int, int, AutoSizeFlags)

Automatically size grid columns to fit the largest entry.

Declaration
protected override void AutoSizeCols(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.

Overrides
Remarks

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