Blazor

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

    Show / Hide Table of Contents

    Class DropEventArgs<T>

    Provides the event data for the OnDrop and Dropped event.

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

    The type of the OnDrop and Dropped event data.

    Constructors

    DropEventArgs()

    Declaration
    public DropEventArgs()

    Properties

    Cancel

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

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

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

    DropIndex

    Gets a value indicating the dropped index of the target SfListBox<TValue, TItem>.

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

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

    Items

    Gets the items being dropped during the drop 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 drop event.

    Left

    Gets the client X value of target element.

    Declaration
    public double Left { get; }
    Property Value
    Type Description
    System.Double

    A double value that represents the client x value of the cloned element while dropping.

    Remarks

    Use Left and Top value to get the exact position to insert the dragged item if the dropping is performed other than the SfListBox<TValue, TItem> component.

    TargetId

    Gets the ID of the element on which the user releases their mouse button (or finger, on touch devices) to complete the drag-and-drop action.

    Declaration
    public string TargetId { get; }
    Property Value
    Type Description
    System.String

    Top

    Gets the client Y value of target element.

    Declaration
    public double Top { get; }
    Property Value
    Type Description
    System.Double

    A double value that represents the client y value of the cloned element while dropping.

    Remarks

    Use Left and Top value to get the exact position to insert the dragged item if the dropping is performed other than the SfListBox<TValue, TItem> component.

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