151 references to All
System.Windows.Forms (16)
System\Windows\Forms\Control.cs (10)
316
RequiredScaling = BoundsSpecified.
All
;
1011
set => SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.
All
);
4228
ParentInternal?.LayoutEngine.InitLayout(this, BoundsSpecified.
All
);
5765
LayoutEngine.InitLayout(this, BoundsSpecified.
All
);
9449
LayoutEngine.InitLayout(child, BoundsSpecified.
All
);
9666
excludedSpecified |= (~RequiredScaling & BoundsSpecified.
All
);
9786
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.
All
);
9815
SetBounds(sx, sy, sw, sh, BoundsSpecified.
All
);
9976
SetBoundsCore(x, y, width, height, BoundsSpecified.
All
);
9990
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)
2444
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, Rectangle.Empty };
2450
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2456
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 6, 12) };
2462
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, -6, -12) };
2484
yield return new object[] { Rectangle.Empty, new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 4, 4) };
2490
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 4, 4) };
2496
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2502
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 2, 4) };
2508
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 6, 4) };
2617
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(1, 2, 0, 0) };
2623
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2629
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(1, 2, 6, 12) };
2635
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(1, 2, -6, -12) };
2706
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 3, 0) };
2712
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2718
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 3, 12) };
2724
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 3, -12) };
2756
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 0, 4) };
2762
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2768
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 6, 4) };
2774
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, -6, 4) };
2806
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0), BoundsSpecified.
All
, new Rectangle(0, 0, 3, 4) };
2812
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), BoundsSpecified.
All
, new Rectangle(1, 2, 3, 4) };
2818
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3), BoundsSpecified.
All
, new Rectangle(2, 6, 3, 4) };
2824
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3), BoundsSpecified.
All
, new Rectangle(-2, -6, 3, 4) };
2969
.Setup(e => e.InitLayout(control, BoundsSpecified.
All
))
2974
mockLayoutEngine.Verify(e => e.InitLayout(control, BoundsSpecified.
All
), Times.Once());
2979
mockLayoutEngine.Verify(e => e.InitLayout(control, BoundsSpecified.
All
), Times.Exactly(2));
6761
.Setup(e => e.InitLayout(child, BoundsSpecified.
All
))
6769
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount));
6775
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount * 2));
6809
.Setup(e => e.InitLayout(child, BoundsSpecified.
All
))
6815
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount));
6821
mockLayoutEngine.Verify(e => e.InitLayout(child, BoundsSpecified.
All
), Times.Exactly(expectedInitLayoutCallCount * 2));
8083
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0 };
8084
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, -3, -4, 1 };
8085
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0 };
8086
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0 };
8087
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0 };
8088
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1 };
8089
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1 };
8090
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1 };
8091
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8251
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8252
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8253
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 0 };
8254
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 31, 40, 0 };
8255
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 41, 0 };
8256
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 40, 50, 0 };
8257
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 20, 10, 1 };
8258
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8259
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8260
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8261
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8262
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1 };
8263
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 20, 30, 1 };
8264
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 20, 30, 1 };
8265
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 0 };
8266
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 0 };
8267
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 40, 50, 0 };
8268
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 40, 50, 0 };
8362
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0, 0 };
8363
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, -3, -4, -7, -8, 1 };
8364
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, -4, -4, 1 };
8365
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, -4, -4, 1 };
8366
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, -4, -4, 1 };
8367
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, -3, -4, 1 };
8368
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, -4, -2, 1 };
8369
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, -3, -2, 1 };
8370
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 26, 36, 1 };
8460
yield return new object[] { 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0 };
8461
yield return new object[] { -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, -3, -4, 1, 2 };
8462
yield return new object[] { 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 1 };
8463
yield return new object[] { 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 1 };
8464
yield return new object[] { 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 1 };
8465
yield return new object[] { 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 2 };
8466
yield return new object[] { 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 2 };
8467
yield return new object[] { 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 2 };
8468
yield return new object[] { 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 2 };
8655
yield return new object[] { true, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0 };
8656
yield return new object[] { true, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0 };
8657
yield return new object[] { true, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0 };
8658
yield return new object[] { true, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0 };
8659
yield return new object[] { true, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0 };
8660
yield return new object[] { true, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 1 };
8661
yield return new object[] { true, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 1 };
8662
yield return new object[] { true, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 1 };
8663
yield return new object[] { true, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 1 };
8665
yield return new object[] { false, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0 };
8666
yield return new object[] { false, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0 };
8667
yield return new object[] { false, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0 };
8668
yield return new object[] { false, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0 };
8669
yield return new object[] { false, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0 };
8670
yield return new object[] { false, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 0 };
8671
yield return new object[] { false, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 0 };
8672
yield return new object[] { false, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 0 };
8673
yield return new object[] { false, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 0 };
8777
yield return new object[] { true, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0, 0, 0 };
8778
yield return new object[] { true, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0, 1, 2 };
8779
yield return new object[] { true, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0, 1, 1 };
8780
yield return new object[] { true, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0, 1, 1 };
8781
yield return new object[] { true, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0, 1, 1 };
8782
yield return new object[] { true, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 1, 2, 2 };
8783
yield return new object[] { true, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 1, 2, 2 };
8784
yield return new object[] { true, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 1, 2, 2 };
8785
yield return new object[] { true, 1, 2, 30, 40, BoundsSpecified.
All
, 1, 2, 30, 40, 1, 1, 2, 2 };
8787
yield return new object[] { false, 0, 0, 0, 0, BoundsSpecified.
All
, 0, 0, 0, 0, 0, 0, 0, 0 };
8788
yield return new object[] { false, -1, -2, -3, -4, BoundsSpecified.
All
, -1, -2, 0, 0, 0, 0, 1, 2 };
8789
yield return new object[] { false, 1, 0, 0, 0, BoundsSpecified.
All
, 1, 0, 0, 0, 0, 0, 1, 1 };
8790
yield return new object[] { false, 0, 2, 0, 0, BoundsSpecified.
All
, 0, 2, 0, 0, 0, 0, 1, 1 };
8791
yield return new object[] { false, 1, 2, 0, 0, BoundsSpecified.
All
, 1, 2, 0, 0, 0, 0, 1, 1 };
8792
yield return new object[] { false, 0, 0, 1, 0, BoundsSpecified.
All
, 0, 0, 1, 0, 1, 0, 2, 2 };
8793
yield return new object[] { false, 0, 0, 0, 2, BoundsSpecified.
All
, 0, 0, 0, 2, 1, 0, 2, 2 };
8794
yield return new object[] { false, 0, 0, 1, 2, BoundsSpecified.
All
, 0, 0, 1, 2, 1, 0, 2, 2 };
8795
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
);