Software Developer's Kit - ChemDraw

Send comments on this topic
Visible Property
See Also 

Description

Member of ChemDraw Control.Constraint.

Returns whether this constraint is visible or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property Visible() As Boolean

Return Type

Boolean

Remarks

When this property returns True, it indicates that the object is visible.

Example

'Declares variable vObject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1  
     Exit Sub
 End If
 Private Sub cmdVisible_Click()
    'Toggles the visible property
     If  vObject.Visible = True Then
         vObject.Visible = False
     Else
        vObject.Visible = True 
     End If
 End Sub

See Also