ISButton.Align

Description

This property defines how the specified button 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 ISButton interface

Return Value

TSAlign

Example

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

Version information

Added in v7.8.0