menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridOleDropTarget - API Reference

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    NonFinalizeDisposable
    GridSubComponent
    GridOleDropTarget
    Implements
    System.IDisposable
    IGridOleDragDropEventsTarget
    Inherited Members
    GridSubComponent.Grid
    NonFinalizeDisposable.Dispose()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    NonFinalizeDisposable.Dispose(Boolean)

    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.

    Implements

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