alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class SelectionChangedEventArgs

    Notifies when select or deselect any objects from the diagram.

    Inheritance
    object
    SelectionChangedEventArgs
    SelectionChangingEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SelectionChangedEventArgs
    Examples
    <SfDiagramComponent SelectionChanged="@OnSelectionChanged">
    </SfDiagramComponent>
    private void OnSelectionChanged( SelectionChangedEventArgs args)
    {
        if (args.NewValue[0] is Node)
        {
            string id = (args.Element as NodeBase).ID;
        }
    }

    Constructors

    SelectionChangedEventArgs()

    Declaration
    public SelectionChangedEventArgs()

    Properties

    ActionTrigger

    Gets the actual cause of the event

    Declaration
    public DiagramAction ActionTrigger { get; }
    Property Value
    Type Description
    DiagramAction

    The DiagramAction object that represents the actual cause of the event.

    NewValue

    Gets the selected element after the event has triggered

    Declaration
    public ObservableCollection<IDiagramObject>? NewValue { get; }
    Property Value
    Type
    ObservableCollection<IDiagramObject>

    OldValue

    Gets the last selected elements, it's empty if previously, not objects have selected.

    Declaration
    public ObservableCollection<IDiagramObject>? OldValue { get; }
    Property Value
    Type
    ObservableCollection<IDiagramObject>

    Type

    Gets the item is added or removed from the list.

    Declaration
    public CollectionChangedAction Type { get; }
    Property Value
    Type Description
    CollectionChangedAction

    A CollectionChangedAction value indicating the type of change that occurred on the collection.

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