フラット ボタン - IconHeight プロパティ

アイコンの高さ (ピクセル)

フラット ボタン (PRIM_MD.FlatButton) のメンバ

データ タイプ - 整数

詳細

IconHeight プロパティは、アイコンアイコン イメージ の高さや幅を統制します。
 
値が指定されると、指定の高さと幅になるように、イメージが利用できるスペースのサイズが調整されます。
 
ゼロの場合、利用できるスペースのサイズはフォントのサイズにより定義されます。

この例ではラベルが 3 つあります。
 
最初のラベルは、IconHeight がゼロなので、アイコンはフォント サイズが変更するたびにサイズ変更されます。
2 つめは、同じフォントを使用していますが、高さが指定されています。
3 つめも同じフォントを使用しており、適切に 256x256 に調整されたアイコン イメージを表示しています。
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Height(313) Width(737)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style) FontSize(36)
 
   Define_Com Class(#PRIM_MD.Label) Name(#Label) Caption('Text') CaptionAlignment(CenterLeft) DisplayPosition(3) Height(60) Icon('label') IconHeight(0) Left(14) Parent(#COM_OWNER) TabPosition(3)  TabStop(False) ThemeDrawStyle('LightTitle') Top(13) Width(267) Style(#Style)
   Define_Com Class(#PRIM_MD.Label) Name(#Label1) Caption('Text') CaptionAlignment(CenterLeft) DisplayPosition(2) Height(57) Icon('label') Left(16) Parent(#COM_OWNER) TabPosition(2) TabStop(False)   ThemeDrawStyle('LightTitle') Top(80) Width(267) Style(#Style)
   Define_Com Class(#PRIM_MD.Label) Name(#Label2) Caption('Text') CaptionAlignment(CenterLeft) DisplayPosition(1) Height(57) Left(16) Parent(#COM_OWNER) TabPosition(1) TabStop(False) ThemeDrawStyle('LightTitle') Top(144) Width(267) Style(#Style) IconImage(#xImageImage256) IconHeight(48)
 
End_Com

参照

すべてのコンポーネント クラス

テクニカルリファレンス

EPC142030 February 2019