Class ChangedValues
Represents the objects’ position and size properties that have changed in the last action such as undo, redo.
Inheritance
System.Object
ChangedValues
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChangedValues : Object
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
ChangedValues()
Declaration
public ChangedValues()
Properties
Height
Returns the object’s height.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OffsetX
Returns the object’s offsetX.
Declaration
public double OffsetX { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OffsetY
Returns the object’s offsetY.
Declaration
public double OffsetY { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RotateAngle
Returns the object’s RotateAngle.
Declaration
public double RotateAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Returns the object’s width.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double |