Blazor

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

    Show / Hide Table of Contents

    Class ChangedObject

    Represents the objects that have changed in the action such as undo, redo.

    Inheritance
    System.Object
    ChangedObject
    Implements
    System.IEquatable<ChangedObject>
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChangedObject : Object, IEquatable<ChangedObject>
    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

    ChangedObject()

    Declaration
    public ChangedObject()

    Properties

    EntryType

    Returns the type of entry.

    Declaration
    public string EntryType { get; set; }
    Property Value
    Type Description
    System.String

    NewValue

    Returns the collection of objects that have changed in the last undo or redo.

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

    OldValue

    Returns the collection of objects, where each object represents the changes made in the last action such as undo, redo.

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

    Methods

    Equals(ChangedObject)

    Indicates whether the ChangedObject object is equal to another object of the same type

    Declaration
    public bool Equals(ChangedObject changedObject)
    Parameters
    Type Name Description
    ChangedObject changedObject

    Represents the objects that have changed in the action such as undo, redo.

    Returns
    Type Description
    System.Boolean

    Returns an array of objects, where each object represents the changes made in last undo/redo

    Implements

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