ISImage.AutoSize

Description

This property is True if the specified image control sizes itself automatically to match the dimensions of its content.

Syntax

object.AutoSize

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

Return Value

bool

Example

Display AutoSize for the specified image control.

Dim aImage
Dim aImageInfo

Set aImage = Form.Controls_("Image1")
aImageInfo =_
  "ShortName: " & aImage.ShortName & vbNewLine &_
  "TypeName: " & aImage.TypeName & vbNewLine &_  
  "Align: " & aImage.Align & vbNewLine &_  
  "Width: " & aImage.Width & vbNewLine &_
  "Height: " & aImage.Height & vbNewLine &_
  "Hint: " & aImage.Hint & vbNewLine &_
  "Left: " & aImage.Left & vbNewLine &_
  "Top: " & aImage.Top & vbNewLine &_
  "AutoSize: " & aImage.AutoSize                
  
Profile.MsgBox(aImageInfo)  
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 image control in the controls tree > Properties > AutoSize.

Version information

Added in v7.8.0