This property defines how the specified label control 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
ISLabel interface |
Display some information about the specified label control, including its align.
Dim aLabel
Dim aLabelInfo
Set aLabel = Form.Controls_("Label1")
aLabelInfo =_
"ShortName: " & aLabel.ShortName & vbNewLine &_
"TypeName: " & aLabel.TypeName & vbNewLine &_
"Align: " & aLabel.Align & vbNewLine &_
"Alignment: " & aLabel.Alignment
Profile.MsgBox(aLabelInfo)