Software Developer's Kit - ChemDraw

Send comments on this topic
IsRoundedRectangle Property
See Also 

Description

Member of ChemDraw control.Graphic.

Returns whether the graphic is a rounded rectangle.

Property type

Read-only property

Syntax

Visual Basic
Public Property IsRoundedRectangle() As Boolean

Return Type

Boolean

Remarks

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

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()
    Label1.Caption = MyGraphic.IsRoundedRectangle
End Sub

See Also