Software Developer's Kit - ChemDraw

Send comments on this topic
IsNegativeCharge Property
See Also 

Description

Member of ChemDraw Control.Symbol.

Returns whether the symbol represents a negative charge or not.

Property type

Read-only property

Syntax

Visual Basic
Public Property IsNegativeCharge() As Boolean

Return Type

Boolean

Remarks

This property returns whether the symbol indicates a negative charge or not. If it is true, then the property IsPositiveCharge will be false.

Example

Private Sub ctlChemDraw_SelectionChanged(ByVal selection _
        As ChemDrawControl10Ctl.IChemDrawSelection)
    If  selection.Symbols.Count = 1 Then
        Set MySymbol = ctlChemDraw.selection.Objects.Symbols.Item(1)
        Label1.Caption = "Object: Symbol"
    End If
End Sub

Private Sub Command1_Click()
    If  MySymbol.IsNegativeCharge = True Then
        MySymbol.IsNegativeCharge = False
    Else
        MySymbol.IsNegativeCharge = True
    End If
End Sub

See Also