Software Developer's Kit - ChemDraw

Send comments on this topic
EnlargeToFit Property
See Also 

Description

Member of ChemDrawCtl.

Sets and returns whether the control's content is to be enlarged to fit the viewing area.

Property type

Read-write property

Syntax

Visual Basic
Public Property EnlargeToFit() As Boolean

Return Type

Boolean

Remarks

When the drawing is small, this property is useful to indicate if the control's content is to be enlarged to fit the viewing area. If it is true, the objects will be enlarged to fit the control drawing area, otherwise, if it is false, the control drawing area remains the same size.

Example

Private Sub cmdEnlargeTrue_Click()
   'enlarges drawing to fit the control´s drawing space
    ChemDrawCtl.EnlargeToFit = True
End Sub

Private Sub cmdEnlargeFalse_Click()
   'leaves drawing the same
    ChemDrawCtl.EnlargeToFit = False
End Sub

Private Sub cmdShrinkTrue_Click()
   'shrinks drawing to fit the control´s drawing space
    ChemDrawCtl.ShrinkToFit = True
End Sub

Private Sub cmdShrinkFalse_Click()
   'leaves drawing the same
    ChemDrawCtl.ShrinkToFit = False
End Sub

See Also