ISMemo.AutoSize

Description

When the property is True, the height of the specified memo control is reduced to the height of the single line. It is not accessible in the Object Inspector.

Syntax

object.AutoSize

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

Return Value

bool

Example

Display AutoSize for the specified memo control.

Dim aMemo
Dim aMemoInfo

Set aMemo = Form.Controls_("memComment")
aMemoInfo =_
  "ShortName: " & aMemo.ShortName & vbNewLine &_
  "Type Name " & aMemo.TypeName & vbNewLine &_ 
  "Auto Size: " & aMemo.AutoSize
 
Profile.MsgBox(aMemoInfo)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0