FlexPivot for WinForms
AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) メソッド

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > AutoSizeCols メソッド : AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) メソッド
Top row in the range.
Left column in the range.
Bottom row in the range.
Right column in the range.
Amount of extra space, in pixels, to add to the column widths.
Flags that control auto-sizing options.
Adjusts the width of a column range to fit the data in a cell range.
シンタックス
'宣言
 
Public Overloads Overridable Sub AutoSizeCols( _
   ByVal topRow As System.Integer, _
   ByVal leftCol As System.Integer, _
   ByVal bottomRow As System.Integer, _
   ByVal rightCol As System.Integer, _
   ByVal extraSpace As System.Integer, _
   ByVal flags As AutoSizeFlags _
) 
public virtual void AutoSizeCols( 
   System.int topRow,
   System.int leftCol,
   System.int bottomRow,
   System.int rightCol,
   System.int extraSpace,
   AutoSizeFlags flags
)

パラメータ

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.
解説

By default, the AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) method measures every cell in each column, taking into account the cell contents and style.

If the grid has a large number of rows, you can improve performance by using the topRow and bottomRow parameters to specify a row range. You can include only a few hundred rows in the process, and add some extra spacing for safety.

参照

C1FlexGridBase クラス
C1FlexGridBase メンバ
オーバーロード一覧