4 instantiations of Line
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
944line = new Line(snapLine.Offset, Math.Min(dragBounds.Top + (_snapPointY != INVALID_VALUE ? _snapPointY : 0), bounds.Top), 954line = new Line(Math.Min(dragBounds.Left + (_snapPointX != INVALID_VALUE ? _snapPointX : 0), bounds.Left), snapLine.Offset,
System\Windows\Forms\Design\Behavior\DragAssistanceManager.Line.cs (2)
87return new Line(l1.X1, Math.Min(l1.Y1, l2.Y1), l1.X2, Math.Max(l1.Y2, l2.Y2), l1.LineType); 93return new Line(Math.Min(l1.X1, l2.X1), l1.Y1, Math.Max(l1.X2, l2.X2), l1.Y2, l1.LineType);
32 references to Line
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (24)
53private readonly List<Line> _tempVertLines = []; 54private readonly List<Line> _tempHorzLines = []; 55private Line[] _vertLines = []; 56private Line[] _horzLines = []; 62private Line[]? _recentLines; 332private Line[] EraseOldSnapLines(Line[] lines, List<Line>? tempLines) 339Line line = lines[i]; 367Line[]? diffs = Line.GetDiffs(line, tempLines[j]); 411lines = new Line[tempLines.Count]; 433internal Line[] GetRecentLines() 735_vertLines = new Line[_tempVertLines.Count]; 741_horzLines = new Line[_tempHorzLines.Count]; 817private void RenderSnapLines(Line[] lines, Rectangle dragRect) 901private static void CombineSnaplines(Line snapLine, List<Line> currentLines) 906Line curLine = currentLines[i]; 907Line? mergedLine = Line.Overlap(snapLine, curLine); 941Line line; 1179_recentLines = new Line[_vertLines.Length + _horzLines.Length]; 1192Line[] recent = GetRecentLines();
System\Windows\Forms\Design\Behavior\DragAssistanceManager.Line.cs (6)
47public static Line[]? GetDiffs(Line l1, Line l2) 70public static Line? Overlap(Line l1, Line l2)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
119DragAssistanceManager.Line[] lines = _dragManager.GetRecentLines(); 121foreach (DragAssistanceManager.Line line in lines)