Software Developer's Kit - ChemDraw

Send comments on this topic
ObjectTags Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the object tags from the objects in the collection

Property type

Read-only property

Syntax

Visual Basic
Public Property ObjectTags() As ObjectTags

Return Type

Example

'Shows ObjectTags   
 Private Sub cmdShowNumberOfObjectTags_Click() 
     Dim myObjectTag1 as ChemDrawControl10Ctl.ObjectTag
     Dim myObjectTag2 as ChemDrawControl10Ctl.ObjectTag 
    'Checks if at least two ObjectTags have been drawn
     If ctlChemDraw.Objects.ObjectTags.Count > 2 Then 
         Set MyObjectTag1 = ChemDrawControlCtl.Objects.ObjectTags.Item(1)
         Set MyObjectTag2 = ChemDrawControlCtl.Objects.ObjectTags.Item(2)
     End If
 End Sub

See Also