1 instantiation of ToolboxSnapDragDropEventArgs
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
225
return new
ToolboxSnapDragDropEventArgs
(snapDirections, offset, e);
27 references to ToolboxSnapDragDropEventArgs
System.Windows.Forms.Design (27)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (14)
107
private
ToolboxSnapDragDropEventArgs
CreateToolboxSnapArgs(DragEventArgs e, Point mouseLoc)
110
ToolboxSnapDragDropEventArgs
.SnapDirection snapDirections =
ToolboxSnapDragDropEventArgs
.SnapDirection.None;
131
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Left;
137
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Right;
149
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Top;
155
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Bottom;
171
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Top;
177
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Bottom;
189
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Left;
195
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Right;
214
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Left;
220
snapDirections |=
ToolboxSnapDragDropEventArgs
.SnapDirection.Top;
261
ToolboxSnapDragDropEventArgs
se = CreateToolboxSnapArgs(e, new Point(e.X - screenOffset.X, e.Y - screenOffset.Y));
System\Windows\Forms\Design\DesignerUtils.cs (7)
563
public static Rectangle GetBoundsFromToolboxSnapDragDropInfo(
ToolboxSnapDragDropEventArgs
e, Rectangle originalBounds, bool isMirrored)
572
if ((e.SnapDirections &
ToolboxSnapDragDropEventArgs
.SnapDirection.Top) != 0)
576
else if ((e.SnapDirections &
ToolboxSnapDragDropEventArgs
.SnapDirection.Bottom) != 0)
584
if ((e.SnapDirections &
ToolboxSnapDragDropEventArgs
.SnapDirection.Left) != 0)
588
else if ((e.SnapDirections &
ToolboxSnapDragDropEventArgs
.SnapDirection.Right) != 0)
596
if ((e.SnapDirections &
ToolboxSnapDragDropEventArgs
.SnapDirection.Left) != 0)
601
else if ((e.SnapDirections &
ToolboxSnapDragDropEventArgs
.SnapDirection.Right) != 0)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
139
public IComponent[] CreateTool(ToolboxItem tool, Control? parent, int x, int y, int width, int height, bool hasLocation, bool hasSize,
ToolboxSnapDragDropEventArgs
? e)
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
32
private
ToolboxSnapDragDropEventArgs
_toolboxSnapDragDropEventArgs; // used to store extra info about a beh. svc. dragdrop from the toolbox
540
ToolboxSnapDragDropEventArgs
e = defaultValues["ToolboxSnapDragDropEventArgs"] as
ToolboxSnapDragDropEventArgs
;
1383
if (de is
ToolboxSnapDragDropEventArgs
)
1385
_toolboxSnapDragDropEventArgs = de as
ToolboxSnapDragDropEventArgs
;