Software Developer's Kit - ChemDraw

Send comments on this topic
Application Property
See Also 

Description

Member of ChemDraw Control.ObjectTags

Returns the application associated with the ObjectTags collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Application() As Object

Remarks

This property returns the application of the collection of ObjectTags.

Example

'Declares and loads variable
 Dim myObjectTags As ChemDrawControl11Ctl.ObjectTags
 Set myObjectTags = ctlChemDraw.Selection.Objects.ObjectTags

 Private Sub cmdObjectTags_Click()
    'returns the application of the ObjectTags collection
     Text1.text = MyObjectTags.Application
    'returns the number of ObjectTags in the ObjectTags collection
     Text2.text = MyObjectTags.Count 
    'sets the Item(1) of the ObjectTags collection 
     myObjectTags.Item(1).ObjectTagType = 2
    'returns element number of Item(1)of the ObjectTags collection 
     Text3.text = MyObjectTags.Item(1).ObjectTagType
 End Sub

See Also