Software Developer's Kit - ChemDraw

Send comments on this topic
ViewOnly Property
See Also 

Description

Member of ChemDrawCtl.

Sets and returns whether the control is View Only, or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property ViewOnly() As Boolean

Return Type

Boolean

Remarks

If view only is true, the drawing cannot be modified.

Example

Private Sub cmdCommand_Click()
   'if true, drawing cannot be modified
    If  ChemDrawCtl.ViewOnly = True Then
        ChemDrawCtl.ViewOnly = False
    Else
        ChemDrawCtl.ViewOnly = True
    End If
End Sub

See Also