38 references to SnapLine
System.Windows.Forms.Design (18)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
167
lines.Add(new
SnapLine
(SnapLineType.Horizontal, loc.Y + _primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always));
175
lines.Add(new
SnapLine
(SnapLineType.Horizontal, loc.Y - _primaryControl.Margin.Top, SnapLine.MarginTop, SnapLinePriority.Always));
184
lines.Add(new
SnapLine
(SnapLineType.Vertical, loc.X + _primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always));
192
lines.Add(new
SnapLine
(SnapLineType.Vertical, loc.X - _primaryControl.Margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always));
System\Windows\Forms\Design\Behavior\SnapLine.cs (3)
38
:
this
(type, offset, filter: null, SnapLinePriority.Low)
46
:
this
(type, offset, filter, SnapLinePriority.Low)
54
:
this
(type, offset, filter: null, priority)
System\Windows\Forms\Design\ControlCommandSet.cs (3)
481
lines.Add(new
SnapLine
(SnapLineType.Vertical, pt.X + primaryControl.Width + primaryControl.Margin.Right, SnapLine.MarginRight, SnapLinePriority.Always));
489
lines.Add(new
SnapLine
(SnapLineType.Vertical, pt.X - primaryControl.Margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always));
502
lines.Add(new
SnapLine
(SnapLineType.Horizontal, pt.Y + primaryControl.Height + primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always));
System\Windows\Forms\Design\ControlDesigner.cs (4)
360
snapLines.Add(new
SnapLine
(SnapLineType.Horizontal, -margin.Top, SnapLine.MarginTop, SnapLinePriority.Always));
361
snapLines.Add(new
SnapLine
(SnapLineType.Horizontal, margin.Bottom + height, SnapLine.MarginBottom, SnapLinePriority.Always));
362
snapLines.Add(new
SnapLine
(SnapLineType.Vertical, -margin.Left, SnapLine.MarginLeft, SnapLinePriority.Always));
363
snapLines.Add(new
SnapLine
(SnapLineType.Vertical, margin.Right + width, SnapLine.MarginRight, SnapLinePriority.Always));
System\Windows\Forms\Design\ParentControlDesigner.cs (4)
319
snapLines.Add(new
SnapLine
(SnapLineType.Vertical, displayRectangle.Left, SnapLine.PaddingLeft, SnapLinePriority.Always));
320
snapLines.Add(new
SnapLine
(SnapLineType.Vertical, displayRectangle.Right, SnapLine.PaddingRight, SnapLinePriority.Always));
321
snapLines.Add(new
SnapLine
(SnapLineType.Horizontal, displayRectangle.Top, SnapLine.PaddingTop, SnapLinePriority.Always));
322
snapLines.Add(new
SnapLine
(SnapLineType.Horizontal, displayRectangle.Bottom, SnapLine.PaddingBottom, SnapLinePriority.Always));
System.Windows.Forms.Design.Tests (20)
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (20)
51
SnapLine snapLine =
new
(SnapLineType.Baseline, DefaultOffset, DefaultFilter, DefaultPriority);
69
SnapLine snapLine =
new
(type, DefaultOffset, DefaultFilter, DefaultPriority);
84
SnapLine snapLine =
new
(type, DefaultOffset, DefaultFilter, DefaultPriority);
101
SnapLine snapLine =
new
(type, DefaultOffset, DefaultFilter, DefaultPriority);
113
SnapLine snapLine =
new
(SnapLineType.Baseline, offset, DefaultFilter, DefaultPriority);
122
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, DefaultFilter, DefaultPriority);
123
SnapLine snapLine2 =
new
(SnapLineType.Baseline, DefaultOffset, DefaultFilter, DefaultPriority);
131
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, null, DefaultPriority);
132
SnapLine snapLine2 =
new
(SnapLineType.Top, DefaultOffset, null, SnapLinePriority.Low);
140
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, null, DefaultPriority);
141
SnapLine snapLine2 =
new
(SnapLineType.Top, DefaultOffset, DefaultFilter, SnapLinePriority.Low);
176
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, snapLine1Filter, DefaultPriority);
177
SnapLine snapLine2 =
new
(SnapLineType.Top, DefaultOffset, snapLine2Filter, SnapLinePriority.Low);
206
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, snapLine1Filter, DefaultPriority);
207
SnapLine snapLine2 =
new
(SnapLineType.Top, DefaultOffset, snapLine2Filter, SnapLinePriority.Low);
215
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, "custom filter", DefaultPriority);
216
SnapLine snapLine2 =
new
(SnapLineType.Top, DefaultOffset, "custom filter", SnapLinePriority.Low);
224
SnapLine snapLine1 =
new
(SnapLineType.Top, DefaultOffset, "custom filter", DefaultPriority);
225
SnapLine snapLine2 =
new
(SnapLineType.Top, DefaultOffset, "another filter", SnapLinePriority.Low);
235
SnapLine snapLine =
new
(SnapLineType.Baseline, DefaultOffset, filter, DefaultPriority);