This property defines how the specified button is aligned on the form. It is not accessible in the Object Inspector.
object.Align
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISButton interface |
Display some information about the specified button, including its align.
Dim aButton
Dim aControlInfo
set aButton = Form.Controls_("btnDemo")
aControlInfo =_
"Caption: " & aButton.Caption & vbNewLine &_
"ShortName: " & aButton.ShortName & vbNewLine &_
"TypeName: " & aButton.TypeName & vbNewLine &_
"Align: " & aButton.Align
Profile.MsgBox(aControlInfo)