Class IBlazorHistoryChangeArgs
Notifies when the change is reverted, restored or any custom actions detected in the diagram.
Inheritance
System.Object
IBlazorHistoryChangeArgs
Implements
System.IEquatable<IBlazorHistoryChangeArgs>
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class IBlazorHistoryChangeArgs : Object, IEquatable<IBlazorHistoryChangeArgs>
Examples
<SfDiagram Height = "600px" Nodes="@NodeCollection">
<DiagramEvents HistoryChanged = "History" ></ DiagramEvents >
</ SfDiagram >
@code
{
public ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>();
public void History(IBlazorHistoryChangeArgs args)
{
if ((args != null) && (args.Action == HistoryChangeAction.CustomAction) && (args.Change != null) && (args.Source != null))
{
Console.WriteLine("Dragged");
}
}
protected override void OnInitialized()
{
NodeCollection = new ObservableCollection<DiagramNode>()
{
new DiagramNode(){
Id="node1",
Height = 100,
Width = 100,
OffsetX = 300,
OffsetY = 100
},
};
}
}
Constructors
IBlazorHistoryChangeArgs()
Declaration
public IBlazorHistoryChangeArgs()
Properties
Action
Returns the action of an element such as undo, redo, or any custom action.
Declaration
public HistoryChangeAction Action { get; set; }
Property Value
Type | Description |
---|---|
HistoryChangeAction |
Cause
Returns the cause of the event.
Declaration
public string Cause { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Change
Returns the collection of objects that have changed in the last action such as undo, redo.
Declaration
public ChangedObject Change { get; set; }
Property Value
Type | Description |
---|---|
ChangedObject |
Source
Returns the collection of objects that have changed in the last action such as undo, redo.
Declaration
public DiagramEventObjectCollection Source { get; set; }
Property Value
Type | Description |
---|---|
DiagramEventObjectCollection |
Methods
Equals(IBlazorHistoryChangeArgs)
Indicates whether the IBlazorHistoryChangeArgs object is equal to another object of the same type.
Declaration
public bool Equals(IBlazorHistoryChangeArgs iBlazorHistoryChangeArgs)
Parameters
Type | Name | Description |
---|---|---|
IBlazorHistoryChangeArgs | iBlazorHistoryChangeArgs | Diagram history change event arguments |
Returns
Type | Description |
---|---|
System.Boolean | Returns the node/connector are added or removed |
Implements
System.IEquatable<>