Back to Devexpress

TdxCustomListView.ApplyBestFit(TdxListColumn,Boolean) Method

vcl-dxlistview-dot-tdxcustomlistview-dot-applybestfit-x28-dxlistview-dot-tdxlistcolumn-system-dot-boolean-x29.md

latest1.2 KB
Original Source

TdxCustomListView.ApplyBestFit(TdxListColumn,Boolean) Method

Adjusts the width of the specified column to display its content in full.

Declaration

delphi
procedure ApplyBestFit(AColumn: TdxListColumn = nil; AVisibleItemsOnly: Boolean = False);

Parameters

NameTypeDescription
AColumnTdxListColumn

The target List View column. If nil (in Delphi) or nullptr (in C++Builder), the procedure adjusts the width of all columns in the List View.

| | AVisibleItemsOnly | Boolean |

If False , the procedure calculates the column width by the column’s full content; otherwise, the procedure calculates the column width by content in the control’s client area.

|

Remarks

Note

An ApplyBestFit procedure call raises the control’s OnColumnSizeChanged event for each resized column.

See Also

TdxCustomListView Class

TdxCustomListView Members

dxListView Unit