Software Developer's Kit - ChemDraw

Send comments on this topic
BackgroundColor Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the background color of the document (not applicable to objects)

Property type

Read-write property

Syntax

Visual Basic
Public Property BackgroundColor() As ULong

Return Type

ULong

Example

'Declares variable vObject
 Dim vObject As ChemDrawControl10Ctl.Object
'Checks that there is an Object loaded the variable
 If  Selection.Object.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdSettings_click() 
    'Sets the Settings.BackGroundColor
     vObject.Settings.BackGroundColor = Text1.text 

    'Displays the settings 
    Text2.text = vObject.Settings.BackgroundColor
 End Sub

See Also