Software Developer's Kit - ChemDraw

Send comments on this topic
RecenterWhenFitting Property
See Also 

Description

Member of ChemDrawCtl.

Sets and returns whether structures will be centered when ShrinkToFit or EnlargeToFit is true.

Property type

Read-write property

Syntax

Visual Basic
Public Property RecenterWhenFitting() As Boolean

Return Type

Boolean

Remarks

If true, structures will also be centered when ShrinkToFit or EnlargeToFit is true. If false, the structures will simply be moved the smallest distance so that they are visible

Example

Private Sub cmdCommand_Click()
    If  ChemDrawCtl.RecenterWhenFitting = False Then
        ChemDrawCtl.RecenterWhenFitting = True 
    Else 
        ChemDrawCtl.RecenterWhenFitting = False
    End If
End Sub

See Also