Software Developer's Kit - ChemDraw

Send comments on this topic
Magnification Property
See Also 

Description

Member of ChemDraw Control.Document.

Sets and returns the magnification level for the control as a percentage.

Property type

Read-write property

Syntax

Visual Basic
Public Property Magnification() As Double

Return Type

Double

Remarks

The magnification level of the document is expressed as a percentage. A "100" indicates that the drawing is at the same size, less than 100 that it is smaller and more than 100 that it is larger.

Example

'Declares variables 
 Dim myDocument As ChemDrawControl11Ctl.Document 
 Dim myApp As ChemDrawControl11Ctl.Application

 Private Sub cmdCommand_Click()
     Set MyApp = ctlChemDraw.Application
     Set myDocument = myApp.ActiveDocument 
     Command2.Caption = myDocument.Magnification
 End Sub

See Also