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