ISImage.Height

Description

The height of the specified image control in pixels.

Syntax

object.Height

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

Return Value

int

Example

Display some information about the specified image control, including its height in pixels.

Dim aImage
Dim aImageInfo

Set aImage = Form.Controls_("Image1")
aImageInfo =_
  "ShortName: " & aImage.ShortName & vbNewLine &_
  "TypeName: " & aImage.TypeName & vbNewLine &_  
  "Caption: " & aImage.Caption & vbNewLine &_  
  "Width: " & aImage.Width & vbNewLine &_
  "Height: " & aImage.Height & vbNewLine &_
  "Hint: " & aImage.Hint & vbNewLine &_
  "Left: " & aImage.Left & vbNewLine &_
  "Top: " & aImage.Top & vbNewLine &_
  "Tag: " & aImage.Tag                
  
Profile.MsgBox(aImageInfo)  
Note: This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0