Software Developer's Kit - ChemDraw

Send comments on this topic
Start Property
See Also 

Description

Member of ChemDraw Control.Symbol.

Sets and returns the start-position of the symbol.

Property type

Read-write property

Syntax

Visual Basic
Public Property Start() As Point

Return Type

Remarks

To modify the start 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 start point 
     Text1.text = vSymbol.Start.X
     Text2.text = vSymbol.Start.Y
    'Example to ASSIGN values to the X & Y coordinates of the symbol´s start point 
     Dim myPoint As ChemDrawControl10Ctl.Point
     Set myPoint = vSymbol.Start
     myPoint.X = 350
     myPoint.Y = 150
     vSymbol.Start = myPoint
     Label1.Caption = "START" + chr$(13) + _
            Format(vSymbol.Start.X, "0.0") + " Start X" + Chr$(13) + _
            Format(vSymbol.Start.Y, "0.0") + " Start Y" + Chr$(13)
 End Sub

See Also