ISImage.Stretch

Description

The property is True if the image should be changed so that it exactly fits the bounds of the image control.

Syntax

object.Stretch

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

Return Value

bool

Example

Display Stretch for the image control.

Dim aImage
Dim aImageInfo

Set aImage = Form.Controls_("Image2")
aImageInfo =_
  "Type Name: " & aImage.TypeName & vbNewLine &_ 
  "ShortName: " & aImage.ShortName & vbNewLine &_
  "Stretch: " & aImage.Stretch 
  
Profile.MsgBox(aImageInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Stretch 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 > Stretch.

Version information

Added in v7.8.0