1 write to Data
System.Windows.Forms (1)
System\Windows\Forms\OLE\DragEventArgs.cs (1)
43
Data
= data;
51 references to Data
System.Windows.Forms (18)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (5)
64
if (_owner.AllowItemReorder && e.
Data
is not null && e.
Data
.GetDataPresent(typeof(ToolStripItem)))
105
if (_owner.AllowItemReorder && e.
Data
is not null && e.
Data
.GetDataPresent(typeof(ToolStripItem)))
212
DragEventArgs dragEnterArgs = new(e.
Data
, e.KeyState, e.X, e.Y, e.AllowedEffect, e.Effect, e.DropImageType, e.Message, e.MessageReplacementToken)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (7)
23
if (e.
Data
is not null && e.
Data
.GetDataPresent(typeof(ToolStripItem)))
37
if (e.
Data
is not null && e.
Data
.GetDataPresent(typeof(ToolStripItem)))
39
ToolStripItem item = (ToolStripItem)e.
Data
.GetData(typeof(ToolStripItem))!;
46
if (e.
Data
is not null && e.
Data
.GetDataPresent(typeof(ToolStripItem)))
System\Windows\Forms\OLE\DragEventArgs.cs (5)
60
IComVisibleDataObject? IDragEvent.DataObject =>
Data
as IComVisibleDataObject;
116
Data
,
134
&& dragEventArgs.
Data
is not null
135
&& dragEventArgs.
Data
.Equals(
Data
)
System\Windows\Forms\OLE\IAsyncDropTarget.cs (1)
30
/// Avoid dispatching the <see cref="DragEventArgs"/> back to the UI thread as invoking <see cref="DragEventArgs.
Data
"/>
System.Windows.Forms.Design (33)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (2)
175
if (e.
Data
is DropSourceBehavior.BehaviorDataObject)
182
string[] allFormats = e.
Data
!.GetFormats();
System\Windows\Forms\Design\Behavior\ToolboxSnapDragDropEventArgs.cs (1)
22
: base(origArgs.
Data
, origArgs.KeyState, origArgs.X, origArgs.Y, origArgs.AllowedEffect, origArgs.Effect)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (7)
224
if (e.
Data
is DropSourceBehavior.BehaviorDataObject data)
262
else if (e.
Data
is DataObject && components is null)
269
ToolboxItem item = toolboxService.DeserializeToolboxItem(e.
Data
, host);
291
if (e.
Data
is not null)
293
e.Effect = GetEffect(e.
Data
);
301
if (e.
Data
is not null)
303
e.Effect = GetEffect(e.
Data
);
System\Windows\Forms\Design\ComponentTray.cs (1)
1109
_mouseDragTool = _toolboxService.DeserializeToolboxItem(de.
Data
, (IDesignerHost)GetService(typeof(IDesignerHost)));
System\Windows\Forms\Design\DocumentDesigner.cs (1)
270
return de.
Data
is not ToolStripItemDataObject;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
758
if (de.
Data
is DropSourceBehavior.BehaviorDataObject data)
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
671
IDataObject dataObj = de.
Data
!;
870
if (!Dragging && CanDropDataObject(de.
Data
) && de.AllowedEffect != DragDropEffects.None)
1035
public static object[]? GetDraggingObjects(DragEventArgs de) => GetDraggingObjects(de.
Data
);
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
1370
DropSourceBehavior.BehaviorDataObject data = de.
Data
as DropSourceBehavior.BehaviorDataObject;
1388
DropSourceBehavior.BehaviorDataObject data = de.
Data
as DropSourceBehavior.BehaviorDataObject;
1454
DropSourceBehavior.BehaviorDataObject data = de.
Data
as DropSourceBehavior.BehaviorDataObject;
1583
_mouseDragTool = _toolboxService.DeserializeToolboxItem(de.
Data
, host);
1657
if (de.
Data
is DropSourceBehavior.BehaviorDataObject data)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
486
DropSourceBehavior.BehaviorDataObject data = de.
Data
as DropSourceBehavior.BehaviorDataObject;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
947
if (de.
Data
is DropSourceBehavior.BehaviorDataObject data)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1848
if (!(de.
Data
is ToolStripItemDataObject data) || data.Owner != parentToolStrip)
2293
if (de.
Data
is ToolStripItemDataObject data)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
644
if (e.
Data
is ToolStripItemDataObject data && currentDropItem is not null)
834
if (e.
Data
is ToolStripItemDataObject data)
871
if (e.
Data
is ToolStripItemDataObject)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
2598
if (e.
Data
is ToolStripItemDataObject)
2613
if (e.
Data
is ToolStripItemDataObject)
2628
if (e.
Data
is ToolStripItemDataObject data)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
515
if (e.
Data
.GetDataPresent(typeof(TreeNode)))
527
TreeNode dragNode = (TreeNode)e.
Data
.GetData(typeof(TreeNode));