Software Developer's Kit - ChemDraw

Send comments on this topic
Top Property
See Also 

Description

Member of ChemDraw Control.Caption.

Returns the top of the rectangle bounding this caption.

Property type

Read-only property

Syntax

Visual Basic
Public Property Top() As Double

Return Type

Double

Remarks

Returns the top of the rectangle bounding this object, expressed in points.

Example

 


'Declares variable vObject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdLeft_click()
   'Returns the top of the rectangle bounding the object
    Text1.text = vObject.Top
 End Sub

See Also