Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IRotationEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IRotationEventArgs

    Notifies when the selected element has rotated.

    Inheritance
    System.Object
    IRotationEventArgs
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class IRotationEventArgs : Object
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
       <DiagramEvents OnRotateChange = "Rotate" ></ DiagramEvents >
    </ SfDiagram >
    @code
       {
       public ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>();
       public void Rotate(IRotationEventArgs args)
       {
           args.Cancel = false;
           if ((args != null) && (args.Cancel == false) && (args.State == State.Completed) && (args.Source != null) && (args.NewValue != null))
           {
               Console.WriteLine("Rotated");
           }
       }
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>()
          {
               new DiagramNode(){
                   Id="node1",
                   Height = 100,
                   Width = 100,
                   OffsetX = 300,
                   OffsetY = 100
               },
           };
       }
    }

    Constructors

    IRotationEventArgs()

    Declaration
    public IRotationEventArgs()

    Properties

    Cancel

    Users can define whether the selected node can be edit or not.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    NewValue

    Returns the element with the new rotation angle after the event has triggered.

    Declaration
    public DiagramSelectedItems NewValue { get; set; }
    Property Value
    Type Description
    DiagramSelectedItems

    OldValue

    Returns the element with the old size property.

    Declaration
    public DiagramSelectedItems OldValue { get; set; }
    Property Value
    Type Description
    DiagramSelectedItems

    Source

    Returns the element which has selected for the rotation.

    Declaration
    public DiagramSelectedItems Source { get; set; }
    Property Value
    Type Description
    DiagramSelectedItems

    State

    Returns the state of the event such as start, completed.

    Declaration
    public State State { get; set; }
    Property Value
    Type Description
    State
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved