menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CollectionChangingEventArgs - API Reference

    Show / Hide Table of Contents

    Class CollectionChangingEventArgs

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

    Inheritance
    System.Object
    CollectionChangedEventArgs
    CollectionChangingEventArgs
    Inherited Members
    CollectionChangedEventArgs.ActionTrigger
    CollectionChangedEventArgs.Element
    CollectionChangedEventArgs.Action
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CollectionChangingEventArgs : CollectionChangedEventArgs
    Examples
    <SfDiagramComponent Width="1000px" Height="1000px" CollectionChanging="@collection">
    </SfDiagramComponent>
    @code
    {
        private void collection(CollectionChangingEventArgs args)
        {
            if (args.Element != null)
            {
                Console.WriteLine("CollectionChanging");
            }
        }
    }

    Constructors

    CollectionChangingEventArgs()

    Declaration
    public CollectionChangingEventArgs()

    Properties

    Cancel

    Gets or sets the value that indicates whether to cancel the change or not.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, if the change is canceled. Otherwise, false.

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