Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.Brackets

Returns the number of brackets in the brackets collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of brackets in a collection of brackets.

Example

'Declares variable   
 Dim myBrackets As ChemDrawControl11Ctl.Brackets
 
Set myBrackets = ctlChemDraw.Selection.Objects.Brackets

 Private Sub cmdbracketsItem_Click()
    'returns the application of the brackets collection
     Text1.text = MyBrackets.Application
    'returns the number of brackets in the brackets collection
     Text2.text = MyBrackets.Count
    'sets the Item(1) of the brackets collection 
     myBracket.Item(1).BracketType = 2
    'returns element number of Item(1)of the brackets collection
     Text3.text = MyBrackets.Item(1).SRULabel
 End Sub

See Also