ISMemo.Align

Description

This property defines how the specified memo 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 ISMemo interface

Return Value

TSAlign

Example

Display some information about the specified memo control, including its align.

Dim aMemo
Dim aMemoInfo

Set aMemo = Form.Controls_("memComment")

aMemoInfo =_
  "ShortName: " & aMemo.ShortName & vbNewLine &_
  "TypeName: " & aMemo.TypeName & vbNewLine &_
  "Align: " & aMemo.Align & vbNewLine &_
  "Alignment: " & aMemo.Alignment                            
  
Profile.MsgBox(aMemoInfo)    
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0