alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class CollectionChangedEventArgs

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

    Inheritance
    object
    CollectionChangedEventArgs
    CollectionChangingEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CollectionChangedEventArgs
    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.

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