Software Developer's Kit - ChemDraw

Send comments on this topic
Width Property
See Also 

Description

Member of ChemDraw Control.Spline.

Returns the width of the rectangle bounding this Spline.

Property type

Read-only property

Syntax

Visual Basic
Public Property Width() As Double

Return Type

Double

Remarks

Returns the width of the rectangle bounding this object, expressed in points.

Example

'Declares variable vObject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdLeft_click()
   'Returns the width of the rectangle bounding the object
    Text1.text = vObject.Width
 End Sub

See Also