menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CollectionChangedEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CollectionChangedEventArgs

    Notifies while the node/connector is added or removed from the diagram.

    Inheritance
    System.Object
    CollectionChangedEventArgs
    CollectionChangingEventArgs
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved