ISLabel.Align

Description

This property defines how the specified label control is aligned on the form. It is not accessible in the Object Inspector.

Syntax

object.Align

Part Attribute Type Description
object Required
The object always implements the ISLabel interface

Return Value

TSAlign

Example

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)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0