Vcl.ComCtrls.TCustomListView.StringWidth

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

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 メソッドを呼び出すと,指定されたリストビューの現在のフォントを使用する文字列を表示するのに必要な領域をピクセル単位で調べられます。

関連項目