Software Developer's Kit - ChemDraw

Send comments on this topic
IsFilled Property
See Also 

Description

Member of ChemDraw control.Graphic.

Sets and returns whether the graphic is filled or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property IsFilled() As Boolean

Return Type

Boolean

Remarks

The type of graphic is determined by a bit mask. The third least significant bit, i.e. bit 2, indicates whether it is filled or not.

Example

Private Sub ctlChemDraw_SelectionChanged(ByVal selection As ChemDrawControl10Ctl.IChemDrawSelection)
    If  selection.Graphics.Count = 1 Then
        Set MyGraphic = ctlChemDraw.selection.Objects.Graphics.Item(1)
        Label1.Caption = "Object: Graphic"
    End If
End Sub

Private Sub Command1_Click()
    If  MyGraphic.IsFilled = True Then
        MyGraphic.IsFilled = False
    Else
        MyGraphic.IsFilled = True
    End If
End Sub

See Also