Software Developer's Kit - ChemDraw

Send comments on this topic
BorderWidth Property
See Also 

Description

Member of ChemDrawCtl.

Sets and returns the ChemDraw control border width.

Property type

Read-write property

Syntax

Visual Basic
Public Property BorderWidth() As Long

Return Type

Long

Example

'ChemDraw control border
 Private Sub Form_Activate()
     ctlChemDraw.ActiveDocument.Activate
     If  ctlChemDraw.Objects.Count = 0 Then
         ctlChemDraw.SetFocus
     End If
     ctlChemDraw.BorderColor = vbRed
     ctlChemDraw.BorderVisible = True
     ctlChemDraw.BorderWidth = 0
 End Sub

See Also