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