151 references to All
System.Windows.Forms (16)
System\Windows\Forms\Control.cs (10)
315
RequiredScaling = BoundsSpecified.
All
;
1010
set => SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.
All
);
4227
ParentInternal?.LayoutEngine.InitLayout(this, BoundsSpecified.
All
);
5724
LayoutEngine.InitLayout(this, BoundsSpecified.
All
);
9408
LayoutEngine.InitLayout(child, BoundsSpecified.
All
);
9625
excludedSpecified |= (~RequiredScaling & BoundsSpecified.
All
);
9753
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.
All
);
9782
SetBounds(sx, sy, sw, sh, BoundsSpecified.
All
);
9943
SetBoundsCore(x, y, width, height, BoundsSpecified.
All
);
9957
InitScaling(BoundsSpecified.
All
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2586
SetBounds(sx, sy, sw, sh, BoundsSpecified.
All
);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
736
base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.
All
);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
395
SetBounds(r.X, r.Y, r.Height, r.Width, BoundsSpecified.
All
);
System\Windows\Forms\Form.cs (1)
5324
SetBounds(x + workingArea.X, y + workingArea.Y, width, height, BoundsSpecified.
All
);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
965
element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.
All
);
System\Windows\Forms\MDI\MDIClient.cs (1)
199
SetBounds(sx, sy, sw, sh, BoundsSpecified.
All
);
System.Windows.Forms.Tests (134)
System\Windows\Forms\ControlTests.ControlCollection.cs (3)
241
.Setup(e => e.InitLayout(control, BoundsSpecified.
All
))
256
mockLayoutEngine.Verify(e => e.InitLayout(control, BoundsSpecified.
All
), Times.Once());
268
mockLayoutEngine.Verify(e => e.InitLayout(control, BoundsSpecified.
All
), Times.Once());
System\Windows\Forms\ControlTests.Methods.cs (115)
2435
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, Rectangle.Empty };
2441
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2447
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 6, 12) };
2453
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, -6, -12) };
2475
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 4, 4) };
2481
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 4, 4) };
2487
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2493
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 2, 4) };
2499
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 6, 4) };
2608
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(1, 2, 0, 0) };
2614
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2620
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(1, 2, 6, 12) };
2626
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(1, 2, -6, -12) };
2697
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 3, 0) };
2703
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2709
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 3, 12) };
2715
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 3, -12) };
2747
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 0, 4) };
2753
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2759
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 6, 4) };
2765
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, -6, 4) };
2797
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 3, 4) };
2803
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2809
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 3, 4) };
2815
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 3, 4) };
2960
.Setup(e => e.InitLayout(control, BoundsSpecified.
All
))
2965
mockLayoutEngine.Verify(e => e.InitLayout(control, BoundsSpecified.
All
), Times.Once());
2970
mockLayoutEngine.Verify(e => e.InitLayout(control, BoundsSpecified.
All
), Times.Exactly(2));
6752
.Setup(e => e.InitLayout(child, BoundsSpecified.
All
))
6760
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount));
6766
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount * 2));
6800
.Setup(e => e.InitLayout(child, BoundsSpecified.
All
))
6806
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount));
6812
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount * 2));
8074
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0 };
8075
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, -3, -4, 1 };
8076
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0 };
8077
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0 };
8078
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0 };
8079
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1 };
8080
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1 };
8081
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1 };
8082
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8242
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8243
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8244
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 0 };
8245
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 31, 40, 0 };
8246
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 41, 0 };
8247
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 40, 50, 0 };
8248
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 20, 10, 1 };
8249
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8250
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8251
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8252
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8253
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8254
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 20, 30, 1 };
8255
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 20, 30, 1 };
8256
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 0 };
8257
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 0 };
8258
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 40, 50, 0 };
8259
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 40, 50, 0 };
8353
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0, 0 };
8354
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, -3, -4, -7, -8, 1 };
8355
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, -4, -4, 1 };
8356
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, -4, -4, 1 };
8357
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, -4, -4, 1 };
8358
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, -3, -4, 1 };
8359
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, -4, -2, 1 };
8360
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, -3, -2, 1 };
8361
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 26, 36, 1 };
8451
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0 };
8452
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, -3, -4, 1, 2 };
8453
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 1 };
8454
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 1 };
8455
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 1 };
8456
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 2 };
8457
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 2 };
8458
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 2 };
8459
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 2 };
8646
yield return new object[] { true, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0 };
8647
yield return new object[] { true, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0 };
8648
yield return new object[] { true, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0 };
8649
yield return new object[] { true, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0 };
8650
yield return new object[] { true, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0 };
8651
yield return new object[] { true, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 1 };
8652
yield return new object[] { true, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 1 };
8653
yield return new object[] { true, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 1 };
8654
yield return new object[] { true, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 1 };
8656
yield return new object[] { false, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0 };
8657
yield return new object[] { false, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0 };
8658
yield return new object[] { false, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0 };
8659
yield return new object[] { false, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0 };
8660
yield return new object[] { false, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0 };
8661
yield return new object[] { false, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 0 };
8662
yield return new object[] { false, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 0 };
8663
yield return new object[] { false, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 0 };
8664
yield return new object[] { false, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 0 };
8768
yield return new object[] { true, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0, 0, 0 };
8769
yield return new object[] { true, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0, 1, 2 };
8770
yield return new object[] { true, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0, 1, 1 };
8771
yield return new object[] { true, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0, 1, 1 };
8772
yield return new object[] { true, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0, 1, 1 };
8773
yield return new object[] { true, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 1, 2, 2 };
8774
yield return new object[] { true, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 1, 2, 2 };
8775
yield return new object[] { true, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 1, 2, 2 };
8776
yield return new object[] { true, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 1, 2, 2 };
8778
yield return new object[] { false, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0, 0, 0 };
8779
yield return new object[] { false, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0, 1, 2 };
8780
yield return new object[] { false, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0, 1, 1 };
8781
yield return new object[] { false, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0, 1, 1 };
8782
yield return new object[] { false, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0, 1, 1 };
8783
yield return new object[] { false, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 0, 2, 2 };
8784
yield return new object[] { false, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 0, 2, 2 };
8785
yield return new object[] { false, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 0, 2, 2 };
8786
yield return new object[] { false, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 0, 2, 2 };
System\Windows\Forms\Layout\FlowLayoutTests.cs (3)
16
engine.InitLayout(control, BoundsSpecified.
All
);
24
Assert.Throws<NotSupportedException>(() => engine.InitLayout("child", BoundsSpecified.
All
));
32
Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.
All
));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
14
engine.InitLayout(new ScrollableControl(), BoundsSpecified.
All
);
21
Assert.Throws<NotSupportedException>(() => engine.InitLayout("child", BoundsSpecified.
All
));
28
Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.
All
));
System\Windows\Forms\ScrollBarTests.cs (8)
1774
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 0, 4) };
1780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
1786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 6, 4) };
1792
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, -6, 4) };
1822
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 3, 0) };
1828
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
1834
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 3, 12) };
1840
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 3, -12) };
TrackBarTests.cs (2)
2872
foreach (BoundsSpecified specified in new BoundsSpecified[] { BoundsSpecified.Height, BoundsSpecified.Size, BoundsSpecified.
All
})
2905
foreach (BoundsSpecified specified in new BoundsSpecified[] { BoundsSpecified.Width, BoundsSpecified.Size, BoundsSpecified.
All
})
System.Windows.Forms.UI.IntegrationTests (1)
AnchorLayoutTests.cs (1)
226
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10, BoundsSpecified.
All
);