ClearCanvas.Desktop.View.WinForms.BindingTreeView.GetDragDropData C# (CSharp) Method

GetDragDropData() private method

Extracts the drag-drop data from the event args, assuming this is an in-process drop. Out-of-process drops are not currently supported by this control.
private GetDragDropData ( DragEventArgs e ) : object
e System.Windows.Forms.DragEventArgs
return object
        private object GetDragDropData(DragEventArgs e)
        {
            IDataObject dao = e.Data;
            string[] formats = dao.GetFormats();

            // use any available format, since we are assuming the data is in-process
            return formats.Length > 0 ? dao.GetData(formats[0]) : null;
        }