Class CollectionChangedEventArgs
Notifies while the node/connector is added or removed from the diagram.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class CollectionChangedEventArgs : Object
Examples
<SfDiagramComponent Width="1000px" Height="1000px" CollectionChanged="@collection">
</SfDiagramComponent>
@code
{
private void collection(CollectionChangedEventArgs args)
{
if (args.Element != null)
{
Console.WriteLine("CollectionChanged");
}
}
}
Constructors
CollectionChangedEventArgs()
Declaration
public CollectionChangedEventArgs()
Properties
Action
Gets the type of collection change like addition or removal.
Declaration
public CollectionChangedAction Action { get; }
Property Value
Type | Description |
---|---|
CollectionChangedAction | The CollectionChangedAction representing the type of collection change. |
ActionTrigger
Gets the current action, like Interactions, Drawing Tools, etc., to be performed in the diagram.
Declaration
public DiagramAction ActionTrigger { get; }
Property Value
Type | Description |
---|---|
DiagramAction | The DiagramAction representing the current action in the diagram. |
Element
Gets the actual object which is added, removed, or modified.
Declaration
public NodeBase Element { get; }
Property Value
Type | Description |
---|---|
NodeBase | The NodeBase representing the actual object in the diagram. |