Software Developer's Kit - ChemDraw

Send comments on this topic
MakeRectangle Method
See Also 

Description

Member of ChemDraw Control.Document.

Creates a new rectangle in the document

Syntax

Visual Basic
Public Function MakeRectangle() As Graphic

Return Type

Example

'Declares variables 
 Dim myDocument As
ChemDrawControl11Ctl.Document 
 Private Sub cmdCommand_Click()
     
Set MyRectangle = myDocument.MakeRectangle
     myRectangle.selected = True  
     ctlChemDraw.Zoom 1000
 End Sub

See Also