Parent Property

Applies To:

Bonds collection

Description:

This object's creator/owner

Syntax:

LPDISPATCH/Object Bonds.Parent

Remarks:

Read-only.  For the Bonds collection, this property points to the Molecule object to which the bonds belong.

Example:

The following Visual Basic code sets CopyMol to the parent molecule of the bonds collection:

Dim ParentMol As Object        'Parent molecule
Dim TotalBonds As Object       'Bonds collection
Dim CopyMol As Object          'Molecule object

Set TotalBonds = ParentMol.Bonds 'Set Bonds collection
Set CopyMol = TotalBonds.Parent  'Get molecule
'Now CopyMol points to the same thing as ParentMol.

'Code to create ParentMol is omitted.

See Also:

Molecule object


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA