Software Developer's Kit - ChemDraw

Send comments on this topic
Zoom Method
See Also 
factor
Indicates the percentage of the zoom.
Center
Indicates the center point, round which everything will be zoomed.

Description

Member of ChemDrawCtl.

Modify the magnification level of the document.

Syntax

Visual Basic
Public Sub Zoom( _
   ByVal factor As Double, _
   Optional ByVal Center As Point = 0 _
) 

Parameters

factor
Indicates the percentage of the zoom.
Center
Indicates the center point, round which everything will be zoomed.

Remarks

Modifies the magnification level of the document. Factor is expressed as a percentage. A factor of  100 will leave the drawing at the same size, less than 100 will reduce it, more than 100 will enlarge it.

Example

'zoom 
 Private Sub cmdZoom_Click()
    Dim myObject as ChemDrawControl10Ctl.Object 
    Dim myPoint  as ChemDrawControl10Ctl.Point
    Set myPoint = myObject.Position 
    'this will zoom to half
    ctlChemDraw.Zoom 50, myPoint  
    'this will zoom to double
    ctlChemDraw.Zoom 200, myPoint
End Sub

See Also