event SelectionChanged ()
Notifies your application that the control's selection has been changed.

TypeDescription
The SelectionChanged event occurs once a new element is selected or unselected. The Selected property of the Element object indicates whether the element is selected or unselected. The Selectable property of the Element object indicates whether the element is selectable or un-selectable.

The SelectObjectColor / SelectObjectTextColor property specifies the colors to show the selected elements ( while the control has the focus ). The SelectObjectColorInactive / SelectObjectTextColorInactive property specifies the color to show the selected elements ( while the control is not focused ). The SelectObjectStyle property specifies the style to show the selected elements ( like changing the element's background/foreground colors, showing a border around the selected elements, and so on ). Use the Background(exSelectObjectRectColor) property to specify the color to show the rectangle that highlights the elements that intersect the dragging rectangle.

The SingleSel property specifies whether the surface allows selecting one or multiple elements. The SelCount property counts the number of selected elements. The SelElement property returns the selected element based on its index in the selected elements collection. The Selection property sets or gets a safe array of selected elements. The AllowSelectObject property indicates the keys combination to allow user selecting new elements. The AllowSelectObjectRect property specifies the keys combination so the user can select the elements from the dragging rectangle. The AllowSelectNothing property indicates whether the selection is cleared once the user clicks any empty area on the surface. The SelectAll method selects all elements in the chart. Use the UnselectAll method to unselect all elements on the surface.

Syntax for SelectionChanged event, /NET version, on:

private void SelectionChanged(object sender)
{
}

Private Sub SelectionChanged(ByVal sender As System.Object) Handles SelectionChanged
End Sub

Syntax for SelectionChanged event, /COM version, on:

private void SelectionChanged(object sender, EventArgs e)
{
}

void OnSelectionChanged()
{
}

void __fastcall SelectionChanged(TObject *Sender)
{
}

procedure SelectionChanged(ASender: TObject; );
begin
end;

procedure SelectionChanged(sender: System.Object; e: System.EventArgs);
begin
end;

begin event SelectionChanged()
end event SelectionChanged

Private Sub SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectionChanged
End Sub

Private Sub SelectionChanged()
End Sub

Private Sub SelectionChanged()
End Sub

LPARAMETERS nop

PROCEDURE OnSelectionChanged(oSwimLane)
RETURN

Syntax for SelectionChanged event, /COM version (others), on:

<SCRIPT EVENT="SelectionChanged()" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function SelectionChanged()
End Function
</SCRIPT>

Procedure OnComSelectionChanged 
	Forward Send OnComSelectionChanged 
End_Procedure

METHOD OCX_SelectionChanged() CLASS MainDialog
RETURN NIL

void onEvent_SelectionChanged()
{
}

function SelectionChanged as v ()
end function

function nativeObject_SelectionChanged()
return

The following VB sample enumerates the incoming elements ( of selected elements ):

Private Sub SwimLane1_SelectionChanged()
    With SwimLane1
        Dim s As Variant
        For Each s In .Selection
            Debug.Print "Incomming Elements of " & s.ID & "are: "
            With s
                For Each i In .IncomingLinks
                    Debug.Print i.ElementFrom.ID
                Next
            End With
        Next
    End With
End Sub

The following VB sample enumerates the outgoing elements ( of selected elements ):

Private Sub SwimLane1_SelectionChanged()
    With SwimLane1
        Dim s As Variant
        For Each s In .Selection
            Debug.Print "Outgoing Elements of " & s.ID & "are: "
            With s
                For Each i In .OutgoingLinks
                    Debug.Print i.ElementTo.ID
                Next
            End With
        Next
    End With
End Sub