Vcl.ComCtrls.TTextAttributes.Size

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

Delphi

property Size: Integer read GetSize write SetSize;

C++

__property int Size = {read=GetSize, write=SetSize, nodefault};

プロパティ

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

説明

フォントの高さをポイント単位で指定します。

フォントの高さをポイント単位で指定するには,Size プロパティを使用します。フォントのサイズをピクセル単位で指定するには,Height プロパティを使用します。アプリケーションでは通常はポイント単位でフォントサイズを表しますが,プログラムではフォントのサイズをピクセル単位で扱い,画面に表示するのが普通です。

Height プロパティの値と Size プロパティの値の関係は,次の式で示されます。

Size = Height * 72 / ScreenPixelsPerInch

メモ:  TFont オブジェクトの Size プロパティとは異なり,TTextAttributes オブジェクトの Size プロパティはフォントの上部に表示される内部レディングを省きます。

関連項目