ImageAlign属性

适用范围
Button、Label、RadioButton、CheckBox、LED

描述
获取或设置控件上显示的图像的图像对齐。

使用

GGet Form.Control.ImageAlign, var  
GSet  Form.Control.ImageAlign, value  
Form
指定窗体名称或含有窗体名称的字符串变量。
Control
指定控件名称或含有控件名称的字符串。
var
取得属性值的整数变量。
value
在属性中设定的整数表达式。

数值
1 - TopLeft
2 - TopCenter
3 - TopRight
4 - MiddleLeft
5 - MiddleCenter
6 - MiddleRight
7 - BottomLeft
8 - BottomCenter
9 - BottomRight

默认:

  • 5 - MiddleCenter (Button, Label, RadioButton, CheckBox)
  • 4 - MiddleLeft (LED)

另见
Button、Label、RadioButton、Checkbox、LED、Image 、TextAlign

示例

GSet frmMain.btnTools.ImageAlign, IMAGEALIGN_MIDDLECENTER