Vcl.ComCtrls.TListColumn.Width

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property Width: TWidth read GetWidth write SetWidth stored IsWidthStored default 50;

C++

__property TWidth Width = {read=GetWidth, write=SetWidth, stored=IsWidthStored, default=50};

プロパティ

種類 可視性 ソース ユニット
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TListColumn


説明

列の幅を示します。

Width プロパティは、列のデフォルト幅をピクセルで示します。リストの列は、実行時に境界線をドラッグすることにより、サイズ変更することができます。

Width に値 -1 を設定すると、TListColumn がリスト列の境界線のサイズ変更を自動的に行い、すべての内容が表示されるよう、強制することができます。

Width に値 -2 を設定すると、TListColumn がリスト列の境界線のサイズ変更を自動的に行い、列のキャプションに合わせたサイズになるよう、強制することができます。

関連項目


コード サンプル