Software Developer's Kit - ChemDraw

Send comments on this topic
Application Property
See Also 

Description

Member of ChemDraw Control.Constraint.

Returns the application associated with this constraint.

Property type

Read-only property

Syntax

Visual Basic
Public Property Application() As Object

Return Type

Remarks

Returns the application associated with the selected object. Example: "ChemDraw ProControl"

Example

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

 Private Sub cmdApplication_click()
    'Reads the Object.Application property and assigns it to a text box
     Text1.Text = vObject.Application
 End Sub

See Also