Class GridOleDropTarget
Implements the DropTarget part for OLE drag-and-drop operations. You can add support for additional data formats by creating a class that implements IGridDataObjectConsumer.
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridOleDropTarget : GridSubComponent, IDisposable, IGridOleDragDropEventsTarget
Constructors
GridOleDropTarget(GridControlBase)
Initializes a new GridOleDropTarget.
Declaration
public GridOleDropTarget(GridControlBase grid)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The grid control. |
Methods
Dispose(Boolean)
Disposes objects on release
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Should Dispose |
Overrides
OnDragDrop(DragEventArgs)
Occurs when a drag-drop operation is completed.
Declaration
public virtual void OnDragDrop(DragEventArgs drgevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DragEventArgs | drgevent | A System.Windows.DragEventArgs holding the event data. |
OnDragEnter(DragEventArgs)
Occurs when an object is dragged into the control's bounds.
Declaration
public virtual void OnDragEnter(DragEventArgs drgevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DragEventArgs | drgevent | A System.Windows.DragEventArgs holding the event data. |
OnDragLeave(EventArgs)
Occurs when an object is dragged out of the control's bounds.
Declaration
public virtual void OnDragLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An EventArgs that holds the event data. |
OnDragOver(DragEventArgs)
Occurs when an object is dragged over the control's bounds.
Declaration
public virtual void OnDragOver(DragEventArgs drgevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DragEventArgs | drgevent | A System.Windows.DragEventArgs holding event data. |
Register(GridDragDropFlags)
Sets grid.Model.Options.DragDropDropTargetFlags
Declaration
public void Register(GridDragDropFlags flags)
Parameters
Type | Name | Description |
---|---|---|
GridDragDropFlags | flags | Value for DragDropDropTargetFlags. |
RegisterConsumer(IGridDataObjectConsumer)
Adds a IGridDataObjectConsumer.
Declaration
public void RegisterConsumer(IGridDataObjectConsumer consumer)
Parameters
Type | Name | Description |
---|---|---|
IGridDataObjectConsumer | consumer | A IGridDataObjectConsumer object. |
UnregisterConsumer(IGridDataObjectConsumer)
Removes a IGridDataObjectConsumer.
Declaration
public void UnregisterConsumer(IGridDataObjectConsumer consumer)
Parameters
Type | Name | Description |
---|---|---|
IGridDataObjectConsumer | consumer | A IGridDataObjectConsumer object. |