TextAlign プロパティー
適用
Button, Label, TextBox, RadioButton, CheckBox, LED
説明
コントロールのテキストの位置情報を設定・取得します。
使い方
GGet Form.Control.TextAlign, var
GSet Form.Control.TextAlign, value
- Form
- フォームの名前、またはフォームの名前を含む文字列変数を指定します。
- Control
- コントロールの名前、またはコントロールの名前を含む文字列を指定します。
- var
- プロパティーの値を取得する整数変数を指定します。
- value
- プロパティーに設定する整数式を指定します。
値
ボタン、ラベル、ラジオボタン、チェックボックスコントロール
1 - TopLeft
2 - TopCenter
3 - TopRight
4 - MiddleLeft
5 - MiddleCenter
6 - MiddleRight
7 - BottomLeft
8 - BottomCenter
9 - BottomRight
デフォルト: 1 - TopLeft (Label 1)
4 - MiddleLeft (RadioButton, CheckBox)
5 - MiddleCenter (Button)
6 - MiddleRight (LED)テキストボックスコントロール
1 - Left
2 - Center
3 - Right
デフォルト:Left
参照
Button, Label, TextBox, RadioButton, Checkbox, LED, Text
使用例
GSet frmMain.lblName.TextAlign, TEXTALIGN_LEFT
← Text プロパティー Tickイベント →