Software Developer's Kit - ChemDraw

Send comments on this topic
End Property
See Also 

Description

Member of ChemDraw Control.Symbol.

Sets and returns the end-position of the symbol.

Property type

Read-write property

Syntax

Visual Basic
Public Property End() As Point

Return Type

Remarks

To modify the end point of a symbol object, a point object should be used. See example below.

Example

'Declares variable vSymbol
 Dim vSymbol As ChemDrawControl10Ctl.symbol
'Checks that there is a symbol loaded in the variable
 If  Selection.Symbols.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdEnd_click()
   
'Reads the X & Y coordinates of the symbol´s end point 
     Text1.text = vSymbol.End.X
     Text2.text = vSymbol.End.Y
    'Example to ASSIGN values to the X & Y coordinates of the symbol´s end point 
     Dim myPoint As ChemDrawControl10Ctl.Point
     Set myPoint = vSymbol.End
     myPoint.X = 350
     myPoint.Y = 150
     vSymbol.End = myPoint
     Label1.Caption = "END" + chr$(13) + _
            Format(vSymbol.End.X, "0.0") + " End X" + Chr$(13) + _
            Format(vSymbol.End.Y, "0.0") + " End Y" + Chr$(13)
 End Sub

See Also