Class SizeChangingEventArgs
Notifies when the element is resizing.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class SizeChangingEventArgs : SizeChangedEventArgs
Examples
<SfDiagramComponent Height="600px" Nodes="@nodes" SizeChanging="@OnSizeChange" />
@code
{
DiagramObjectCollection<Node> nodes;
protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
Node node = new Node()
{
// Position of the node
OffsetX = 250,
OffsetY = 250,
// Size of the node
Width = 100,
Height = 100,
};
nodes.Add(node);
}
// Size change event for the diagram
public void OnSizeChange(SizeChangingEventArgs args)
{
Console.WriteLine(args.NewValue.Nodes[0].ID);
}
}
Constructors
SizeChangingEventArgs()
Declaration
public SizeChangingEventArgs()
Properties
Cancel
Gets or sets the value indicates whether to cancel the change or not
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|