Vcl.ComCtrls.TCustomListView.StringWidth
Delphi
function StringWidth(S: string): Integer;
C++
int __fastcall StringWidth(System::UnicodeString S);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
説明
リストビューの現在のフォントをもとに文字列の幅を返します。
StringWidth メソッドを呼び出すと,指定されたリストビューの現在のフォントを使用する文字列を表示するのに必要な領域をピクセル単位で調べられます。