ISControl.AutoSize

Description

This property is True if the width of the specified control should be calculated automatically.

Syntax

object.AutoSize

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

Return Value

bool

Example

Display AutoSize for the specified control.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("chkMV")

aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_
  "TypeName: " & aControl.TypeName & vbNewLine &_   
  "Width: " & aControl.Width & vbNewLine &_
  "Auto Size: " & aControl.AutoSize 
    
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0