Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 


Member of ChemDraw Control.ObjectTags

Returns the number of ObjectTags in the ObjectTags collection.

Property type

Read-only property


Visual Basic
Public Property Count() As Long


Returns the number of ObjectTags in a collection of ObjectTags.


'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