Software Developer's Kit - ChemDraw

Send comments on this topic
Integral Property
See Also 

Description

Member of ChemDraw Control.Group.

Sets and returns whether this group must be selected as an entire unit or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property Integral() As Boolean

Return Type

Boolean

Remarks

If you want to group objects so that the individual objects in the group cannot be accessed, you can create an Integral group. When you select any object in an Integral group, the entire group is selected. To do so, the property Integral must be set to True. By default, this property is set to False.

Example

'Integral property
 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As ChemDrawControl10Ctl.IChemDrawSelection)
     Set MyGroup = ctlChemDraw.MakeGroup()
     For  x = 1 To Selection.Objects.Count - 1 'groups object, without grouping the group
          Selection.Objects.Item(x).Group = MyGroup
     Next x
 End Sub
 Private Sub Command1_Click()
     If  MyGroup.Integral = True Then
         MyGroup.Integral = False
         Text1.text = MyGroup.Integral
     Else
         MyGroup.Integral = True
         Text1.text = MyGroup.Integral 
     End If
 End sub

See Also