ISLabel.Alignment

Description

This property determines how the text is aligned within the label control.

Syntax

object.Alignment

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

Return Value

TSAlignment

Example

Display some information about the specified label control, including the alignment of the text within the label control.

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.

In Profile Client v8 on User Interface Alignment can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the label control in the controls tree > Alignment.

Version information

Added in v7.8.0