menu

Blazor

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

    Show / Hide Table of Contents

    Class SelectionChangingEventArgs

    Notifies before the select or deselect any objects from the diagram.

    Inheritance
    System.Object
    SelectionChangedEventArgs
    SelectionChangingEventArgs
    Inherited Members
    SelectionChangedEventArgs.ActionTrigger
    SelectionChangedEventArgs.NewValue
    SelectionChangedEventArgs.OldValue
    SelectionChangedEventArgs.Type
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SelectionChangingEventArgs : SelectionChangedEventArgs
    Examples
    <SfDiagramComponent SelectionChanging="@SelectionChanging">
    </SfDiagramComponent>
    private void SelectionChanging(SelectionChangingEventArgs args)
    {
         if (args.NewValue[0] is Node)
        {
           args.Cancel = true;
        }
    }

    Constructors

    SelectionChangingEventArgs()

    Declaration
    public SelectionChangingEventArgs()

    Properties

    Cancel

    Gets or sets the value indicates whether the element can be selected.

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

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

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