Software Developer's Kit - ChemDraw

Send comments on this topic
OvalType Property
See Also 


Member of ChemDraw control.Graphic.

Returns the oval type of the graphics that are ovals.

Property type

Read-only property


Visual Basic
Public Property OvalType() As CDOvalType

Return Type


OvalType is read only, but as it works with a bit mask, the types of ovals can be modified, changing the value of graphic boolean properties. See CDOvalType.


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()
    Label1.Caption = "OvalType"
    If  MyGraphic.IsOval = True Then
        Label2.Caption = MyGraphic.OvalType
        Label2.Caption = "Isn't a Oval"
    End If
End Sub

See Also