Software Developer's Kit - ChemDraw

Send comments on this topic
ObjectTags Property
See Also 

Description

Member of ChemDraw Control.Group.

Returns the ObjectTags collection for this group.

Property type

Read-only property

Syntax

Visual Basic
Public Property ObjectTags() As ObjectTags

Return Type

Remarks

The ObjectTags property returns the ObjectTags collection for this object.  Any ChemDraw object can have any number of tags attached to it, including multiple tags with the same name. To enable duplicate names, see MakeObjectTag.

Example

'Declares variables 
 Dim myObject.ObjectTags As ChemDrawControl11Ctl.ObjectTags
 Set myObject.ObjectTags = ctlChemDraw.Selection.Objects.ObjectTags   
 Private Sub cmdObjectTags_Click()
    'returns the application of the ObjectTags collection
     Text1.text = MyObject.ObjectTags.Application
    'returns the number of ObjectTags in the ObjectTags collection
     Text2.text = MyObject.ObjectTags.Count 
    'sets the Item(1) of the ObjectTags collection 
     myObject.ObjectTags.Item(1).ObjectTagType = 2
    'returns Item(1)of the ObjectTags collection 
     Text3.text = MyObject.ObjectTags.Item(1).ObjectTagType    
 End Sub

See Also