Class DropEventArgs<T>
Inheritance
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 |
|
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 |
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 |
---|
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.