Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DragEventArgs<T>

    Show / Hide Table of Contents

    Class DragEventArgs<T>

    Provides the event data for the DragStart event of the SfListBox<TValue, TItem>

    Inheritance
    System.Object
    DragEventArgs<T>
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DragEventArgs<T> : Object
    Type Parameters
    Name Description
    T

    The type of the DragStart event data.

    Constructors

    DragEventArgs()

    Declaration
    public DragEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the drag event should be Canceled.

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

    true if the drag event should be Canceled; otherwise, false. The default value is false.

    DragIndex

    Gets a value indicating the index of the dragged item in the source SfListBox<TValue, TItem>

    Declaration
    public int DragIndex { get; }
    Property Value
    Type Description
    System.Int32

    An integer value that represents the index of the dragged item.

    Remarks

    If the user selects multiple items, the DragIndex contains the last item's index.

    Items

    Gets the items being dragged during the drag operation.

    Declaration
    public IEnumerable<T> Items { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<T>

    An enumerable collection of type T that represents the items for the DragStart event.

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