menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SizeChangingEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SizeChangingEventArgs

    Notifies when the element is resizing.

    Inheritance
    System.Object
    SizeChangedEventArgs
    SizeChangingEventArgs
    Inherited Members
    SizeChangedEventArgs.Element
    SizeChangedEventArgs.NewValue
    SizeChangedEventArgs.OldValue
    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

    true, if the change is canceled. Otherwise, false.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved