ISShape.Top

Description

The vertical offset of the specified shape from the top left corner of the form.

Syntax

object.Top

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

Return Value

int

Example

Display some information about the specified shape, including its vertical offset from the top left corner of the form.

Dim aShape
Dim aShapeInfo

Set aShape = Form.Controls_("Shape1")

aShapeInfo =_
  "ShortName: " & aShape.ShortName & vbNewLine &_
  "Caption: " & aShape.Caption & vbNewLine &_
  "Type Name " & aShape.TypeName & vbNewLine &_ 
  "Top: " & aShape.Top & vbNewLine &_ 
  "Left: " & aShape.Left & vbNewLine &_ 
  "Height: " & aShape.Height & vbNewLine &_ 
  "Width: " & aShape.Width
 
Profile.MsgBox(aShapeInfo) 
Note: This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0