Class PositionChangedEventArgs
Notifies when the node or connector is dragged or its position is changed.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class PositionChangedEventArgs : Object
Examples
<SfDiagramComponent PositionChanged="@changed">
</SfDiagramComponent>
private void changed(PositionChangedEventArgs args)
{
if (args.NewValue != null && args.OldValue != null && args.Element != null)
{
Console.WriteLine("Changed");
}
}
Constructors
PositionChangedEventArgs()
Declaration
public PositionChangedEventArgs()
Properties
Element
Gets the node or connector that is being dragged.
Declaration
public IDiagramObject Element { get; }
Property Value
Type | Description |
---|---|
IDiagramObject | The IDiagramObject that represents the node or connector currently being dragged. |
NewValue
Gets the selector’s current value in which the node or the connector is being dragged.
Declaration
public DiagramSelectionSettings NewValue { get; }
Property Value
Type | Description |
---|---|
DiagramSelectionSettings | The DiagramSelectionSettings representing the current value of the selector during the drag operation. |
OldValue
Gets the Selector old value in which the node or the connector is being dragged.
Declaration
public DiagramSelectionSettings OldValue { get; }
Property Value
Type | Description |
---|---|
DiagramSelectionSettings | The DiagramSelectionSettings representing the previous value of the selector before the drag operation. |