21 references to Top
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
172
lines.Add(new SnapLine(SnapLineType.
Top
, loc.Y));
System\Windows\Forms\Design\Behavior\SnapLine.cs (1)
79
public bool IsHorizontal => SnapLineType is SnapLineType.
Top
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
237
new(SnapLineType.
Top
, r.Top),
System\Windows\Forms\Design\ControlDesigner.cs (1)
352
snapLines.Add(new SnapLine(SnapLineType.
Top
, 0, SnapLinePriority.Low));
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
851
new SnapLine(SnapLineType.
Top
, r.Bottom)
System.Windows.Forms.Design.Tests (16)
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (15)
62
[InlineData(SnapLineType.
Top
, true)]
77
[InlineData(SnapLineType.
Top
, false)]
124
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, DefaultFilter, DefaultPriority);
133
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, null, DefaultPriority);
134
SnapLine snapLine2 = new(SnapLineType.
Top
, DefaultOffset, null, SnapLinePriority.Low);
142
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, null, DefaultPriority);
143
SnapLine snapLine2 = new(SnapLineType.
Top
, DefaultOffset, DefaultFilter, SnapLinePriority.Low);
178
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, snapLine1Filter, DefaultPriority);
179
SnapLine snapLine2 = new(SnapLineType.
Top
, DefaultOffset, snapLine2Filter, SnapLinePriority.Low);
208
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, snapLine1Filter, DefaultPriority);
209
SnapLine snapLine2 = new(SnapLineType.
Top
, DefaultOffset, snapLine2Filter, SnapLinePriority.Low);
217
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, "custom filter", DefaultPriority);
218
SnapLine snapLine2 = new(SnapLineType.
Top
, DefaultOffset, "custom filter", SnapLinePriority.Low);
226
SnapLine snapLine1 = new(SnapLineType.
Top
, DefaultOffset, "custom filter", DefaultPriority);
227
SnapLine snapLine2 = new(SnapLineType.
Top
, DefaultOffset, "another filter", SnapLinePriority.Low);
System\Windows\Forms\Design\ParentControlDesignerTests.cs (1)
42
.Contain(sl => sl.SnapLineType == SnapLineType.
Top
)