Class DiagramSelectionChangedEventArgs
Provides data for SelectionChanged: the diagram's selection just changed in its UI. Carries both the previously-selected and the now-selected Nodes and Connectors against this manager's own tracked instances, so subscribers don't need to reconcile against the live selection themselves.
Inheritance
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public sealed class DiagramSelectionChangedEventArgs : EventArgs
Remarks
OldSelectedNodes/OldSelectedConnectors capture the selection as it stood immediately before this change took effect — read directly off each tracked element's own Syncfusion.Maui.Diagram.Node.IsSelected/IsSelected flag before applying the new set.
The two-argument constructor (selectedNodes, selectedConnectors) is preserved without the old-selection
fields, for callers that don't have a prior selection on hand. The four-argument constructor is what
Managers.DiagramManager actually uses.
Properties
OldSelectedConnectors
Gets the connectors that were selected immediately before this change took effect. Empty (never null) when no connectors were selected before, or when the event was raised through the backward-compatible two-argument constructor.
Declaration
public IReadOnlyList<Connector> OldSelectedConnectors { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.IReadOnlyList<Connector> |
OldSelectedNodes
Gets the nodes that were selected immediately before this change took effect. Empty (never null) when no nodes were selected before, or when the event was raised through the backward-compatible two-argument constructor.
Declaration
public IReadOnlyList<Node> OldSelectedNodes { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.IReadOnlyList<Node> |
SelectedConnectors
Gets the connectors currently selected. Empty (never null) when none are selected.
Declaration
public IReadOnlyList<Connector> SelectedConnectors { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.IReadOnlyList<Connector> |
SelectedNodes
Gets the nodes currently selected. Empty (never null) when none are selected.
Declaration
public IReadOnlyList<Node> SelectedNodes { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.IReadOnlyList<Node> |