menu

Blazor

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

    Show / Hide Table of Contents

    Class SelectionChangedEventArgs

    Notifies when select or deselect any objects from the diagram.

    Inheritance
    System.Object
    SelectionChangedEventArgs
    SelectionChangingEventArgs
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SelectionChangedEventArgs : Object
    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
    System.Collections.ObjectModel.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
    System.Collections.ObjectModel.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.

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