Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IBlazorPropertyChangeEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IBlazorPropertyChangeEventArgs

    Notifies when the node, connector, or diagram property has changed.

    Inheritance
    System.Object
    IBlazorPropertyChangeEventArgs
    Implements
    System.IEquatable<IBlazorPropertyChangeEventArgs>
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class IBlazorPropertyChangeEventArgs : Object, IEquatable<IBlazorPropertyChangeEventArgs>
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
       <DiagramEvents PropertyChanged = "Changed" ></ DiagramEvents >
    </ SfDiagram >
    @code
       {
       public ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>();
       public void Changed(IBlazorPropertyChangeEventArgs args)
       {
           if ((args != null) && (args.Element != null) && (args.NewValue != null) && (args.OldValue != null) && (args.Cause == DiagramAction.Render))
           {
               Console.WriteLine("Changed");
           }
       }
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>()
           {
               new DiagramNode(){
                   Id="node1",
                   Height = 100,
                   Width = 100,
                   OffsetX = 300,
                   OffsetY = 100
               },
           };
       }
    }

    Constructors

    IBlazorPropertyChangeEventArgs()

    Declaration
    public IBlazorPropertyChangeEventArgs()

    Properties

    Cause

    Returns the cause of the event whether it nudge or not.

    Declaration
    public DiagramAction Cause { get; set; }
    Property Value
    Type Description
    DiagramAction

    Element

    Returns the selected element.

    Declaration
    public DiagramPropertyChangeObject Element { get; set; }
    Property Value
    Type Description
    DiagramPropertyChangeObject

    NewValue

    Returns the new value of the node or connectors property that is being changed.

    Declaration
    public DiagramPropertyChangeObject NewValue { get; set; }
    Property Value
    Type Description
    DiagramPropertyChangeObject

    OldValue

    Returns the old value of the node or connector’s property that is being changed.

    Declaration
    public DiagramPropertyChangeObject OldValue { get; set; }
    Property Value
    Type Description
    DiagramPropertyChangeObject

    Methods

    Equals(IBlazorPropertyChangeEventArgs)

    Indicates whether the iBlazorPropertyChangeEventArgs object is equal to another object of the same type.

    Declaration
    public bool Equals(IBlazorPropertyChangeEventArgs iBlazorPropertyChangeEventArgs)
    Parameters
    Type Name Description
    IBlazorPropertyChangeEventArgs iBlazorPropertyChangeEventArgs

    Diagram property change event arguments

    Returns
    Type Description
    System.Boolean

    Returns the node/connector property changed

    Implements

    System.IEquatable<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved