700 references to BoundsSpecified
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
48
BoundsSpecified
specified )
System.Windows.Forms (170)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1152
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => bounds;
1171
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Control.cs (46)
322
RequiredScaling =
BoundsSpecified
.All;
719
parent.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
1105
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2245
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2497
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2509
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
2880
internal
BoundsSpecified
RequiredScaling
2883
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
2884
:
BoundsSpecified
.None;
3101
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3263
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3620
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4315
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5363
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5380
if ((specified &
BoundsSpecified
.X) != 0)
5385
if ((specified &
BoundsSpecified
.Y) != 0)
5414
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5420
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
5852
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5858
private void InitScaling(
BoundsSpecified
specified)
9546
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
9753
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
9754
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
9763
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
9766
if (includedSpecified !=
BoundsSpecified
.None)
9771
if (excludedSpecified !=
BoundsSpecified
.None)
9778
RequiredScaling =
BoundsSpecified
.None;
9797
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
9883
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
9912
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
10070
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
10084
InitScaling(
BoundsSpecified
.All);
10091
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
10093
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
10098
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
10103
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
10108
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10144
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10146
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
12719
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
67
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1935
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
3242
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
3246
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
27451
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27453
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27458
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height && height > UpperSize)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
103
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
631
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Controls\Labels\Label.cs (5)
1377
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1379
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1384
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1538
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1457
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
2067
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2080
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1648
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2578
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
161
BoundsSpecified
.Size);
168
BoundsSpecified
.Size);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
868
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
730
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
740
base.SetBoundsCore(r.X, r.Y, r.Width, r.Height, specified ==
BoundsSpecified
.None ?
BoundsSpecified
.None :
BoundsSpecified
.All);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1780
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
201
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
2591
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
4658
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
654
element.SetBounds(bounds,
BoundsSpecified
.None);
661
element.SetBounds(bounds,
BoundsSpecified
.None);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
1199
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
1491
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
1520
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
987
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
75
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
294
protected override void SetBoundsCore(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
359
element.SetBounds(cell.CachedBounds,
BoundsSpecified
.None);
687
void IArrangedElement.SetBounds(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (2)
28
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
30
if (((specified &
BoundsSpecified
.Location) != 0) && FreezeLocationChange)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (6)
393
SetBounds(r.X, r.Y, r.Height, r.Width,
BoundsSpecified
.All);
1005
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1015
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1022
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None)
System\Windows\Forms\Form.cs (24)
152
private
BoundsSpecified
_restoredWindowBoundsSpecified;
551
toLayout.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
678
BoundsSpecified
preClientUpdateRestoredWindowBoundsSpecified = _restoredWindowBoundsSpecified;
4259
form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height),
BoundsSpecified
.None);
5079
if ((_restoredWindowBoundsSpecified &
BoundsSpecified
.Size) != 0)
5202
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5218
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
5226
specified &= ~
BoundsSpecified
.Location;
5238
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
5246
_restoredWindowBoundsSpecified |= (specified & (
BoundsSpecified
.X |
BoundsSpecified
.Y));
5249
_restoredWindowBoundsSpecified |= (specified & (
BoundsSpecified
.Width |
BoundsSpecified
.Height));
5251
if ((specified &
BoundsSpecified
.X) != 0)
5256
if ((specified &
BoundsSpecified
.Y) != 0)
5261
if ((specified &
BoundsSpecified
.Width) != 0)
5267
if ((specified &
BoundsSpecified
.Height) != 0)
5275
if ((specified &
BoundsSpecified
.X) != 0)
5280
if ((specified &
BoundsSpecified
.Y) != 0)
5285
if ((specified &
BoundsSpecified
.Width) != 0 || _restoreBounds.Width == -1)
5290
if ((specified &
BoundsSpecified
.Height) != 0 || _restoreBounds.Height == -1)
5395
SetBounds(x + workingArea.X, y + workingArea.Y, width, height,
BoundsSpecified
.All);
6563
_restoredWindowBoundsSpecified =
BoundsSpecified
.Size;
6565
_restoredWindowBoundsSpecified |=
BoundsSpecified
.Location;
System\Windows\Forms\Layout\ArrangedElement.cs (2)
171
public void SetBounds(Rectangle bounds,
BoundsSpecified
specified)
178
protected virtual void SetBoundsCore(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Layout\CommonProperties.cs (13)
175
element.SetBounds(GetSpecifiedBounds(element),
BoundsSpecified
.None);
209
element.SetBounds(bounds,
BoundsSpecified
.Size);
233
element.SetBounds(bounds,
BoundsSpecified
.Size);
266
/// whole reason the <see cref="
BoundsSpecified
"/> enum exists.) Consider this scenario. You set a <see cref="Button"/>
284
internal static void UpdateSpecifiedBounds(IArrangedElement element, int x, int y, int width, int height,
BoundsSpecified
specified)
290
bool xChangedButNotSpecified = ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None) & x != originalBounds.X;
291
bool yChangedButNotSpecified = ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None) & y != originalBounds.Y;
292
bool wChangedButNotSpecified = ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None) & width != originalBounds.Width;
293
bool hChangedButNotSpecified = ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None) & height != originalBounds.Height;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (6)
1751
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2061
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
2064
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && Orientation == Orientation.Horizontal)
2073
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None && Orientation == Orientation.Vertical)
System\Windows\Forms\Layout\DefaultLayout.cs (7)
516
element.SetBounds(newElementBounds,
BoundsSpecified
.None);
952
element.SetBounds(CommonProperties.GetSpecifiedBounds(element),
BoundsSpecified
.None);
964
element.SetBounds(CommonProperties.GetSpecifiedBounds(element),
BoundsSpecified
.All);
1059
element.SetBounds(bounds,
BoundsSpecified
.None);
1090
private protected override void InitLayoutCore(IArrangedElement element,
BoundsSpecified
specified)
1092
Debug.Assert(specified ==
BoundsSpecified
.None || GetCachedBounds(element) == element.Bounds,
1095
if (specified !=
BoundsSpecified
.None &&
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
54
set => _element!.SetBounds(value,
BoundsSpecified
.None);
System\Windows\Forms\Layout\IArrangedElement.cs (1)
21
void SetBounds(Rectangle bounds,
BoundsSpecified
specified);
System\Windows\Forms\Layout\LayoutEngine.cs (2)
25
public virtual void InitLayout(object child,
BoundsSpecified
specified)
32
private protected virtual void InitLayoutCore(IArrangedElement element,
BoundsSpecified
bounds)
System\Windows\Forms\Layout\TableLayout.cs (1)
1280
element.SetBounds(elementBounds,
BoundsSpecified
.None);
System\Windows\Forms\MDI\MDIClient.cs (5)
195
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
205
/// <see cref="ScaleControl(SizeF,
BoundsSpecified
)" /> to enforce a minimum and maximum size.
209
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
212
specified &= ~
BoundsSpecified
.Location;
216
protected override unsafe void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Panels\Panel.cs (1)
82
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
494
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
716
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
130
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
477
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
482
specified &= ~
BoundsSpecified
.Width;
486
specified &= ~
BoundsSpecified
.Height;
System\Windows\Forms\UserControl.cs (1)
90
toLayout.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (16)
661
BoundsSpecified
specified =
BoundsSpecified
.None;
680
specified |=
BoundsSpecified
.Height;
696
specified |=
BoundsSpecified
.Height;
701
specified |=
BoundsSpecified
.Y;
711
specified |=
BoundsSpecified
.Width;
724
specified |=
BoundsSpecified
.Width;
736
specified |=
BoundsSpecified
.X;
764
if (((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width) &&
770
if (((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height) &&
776
if (((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.X) &&
782
if (((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.Y) &&
System\Windows\Forms\Design\ComponentTray.cs (5)
2393
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
2396
(specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width ||
2397
(specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height)
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (5)
59
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
61
if ((
BoundsSpecified
.Width & specified) ==
BoundsSpecified
.Width)
66
if ((
BoundsSpecified
.Height & specified) ==
BoundsSpecified
.Height)
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
1659
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1661
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width)
1666
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1688
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (1)
61
accessor.SetBoundsCore(0, 0, 50, 50,
BoundsSpecified
.All);
System.Windows.Forms.Tests (494)
System\Windows\Forms\ComboBoxTests.cs (1)
2936
public new void ScaleControl(SizeF factor,
BoundsSpecified
specified) => base.ScaleControl(factor, specified);
System\Windows\Forms\ControlTests.ControlCollection.cs (3)
243
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
258
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
270
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
System\Windows\Forms\ControlTests.cs (2)
1308
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
1520
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
System\Windows\Forms\ControlTests.Internals.cs (2)
37
[EnumData<
BoundsSpecified
>]
38
public void Control_RequiredScaling_Set_GetReturnsExpected(
BoundsSpecified
value)
System\Windows\Forms\ControlTests.Methods.cs (383)
2409
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2417
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, Rectangle.Empty };
2418
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2419
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2420
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2421
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2423
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2424
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2425
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2426
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2427
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2429
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 12) };
2430
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2431
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2432
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2433
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2435
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, -12) };
2436
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2437
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2438
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2439
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2444
public void Control_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2457
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2458
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.X, Rectangle.Empty };
2459
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Y, Rectangle.Empty };
2460
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(0, 0, 4, 0) };
2461
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(0, 0, 0, 4) };
2463
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2464
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2465
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2466
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 4, 4) };
2467
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2469
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2470
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2471
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2472
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2473
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2475
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 2, 4) };
2476
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2477
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2478
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 2, 4) };
2479
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2481
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 6, 4) };
2482
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2483
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2484
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2485
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2490
public void Control_GetScaledBounds_InvokeWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2503
public void Control_GetScaledBounds_InvokeWithSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2550
public void Control_GetScaledBounds_InvokeWithInvalidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected, object designerHost)
2582
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2590
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(1, 2, 0, 0) };
2591
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2592
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2593
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2594
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2596
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2597
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2598
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2599
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2600
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2602
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(1, 2, 6, 12) };
2603
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2604
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2605
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2606
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2608
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(1, 2, -6, -12) };
2609
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2610
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2611
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2612
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2617
public void Control_GetScaledBounds_InvokeWithValidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2656
public void Control_GetScaledBounds_InvokeTopLevel_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2671
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2679
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
2680
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2681
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2682
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2683
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2685
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2686
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2687
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2688
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2689
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2691
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
2692
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2693
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2694
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2695
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2697
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
2698
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2699
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2700
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2701
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2706
public void Control_GetScaledBounds_InvokeFixedWidth_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2721
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2729
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
2730
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2731
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2732
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2733
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2735
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2736
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2737
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2738
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2739
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2741
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
2742
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2743
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2744
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2745
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2747
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
2748
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2749
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2750
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2751
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2756
public void Control_GetScaledBounds_InvokeFixedHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2771
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2779
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 4) };
2780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2781
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2785
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2787
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2788
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2789
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2791
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 4) };
2792
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2793
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2794
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2795
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2797
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, 4) };
2798
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2799
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2800
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2801
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2806
public void Control_GetScaledBounds_InvokeFixedWidthAndHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2822
public void Control_GetScaledBounds_InvokeFixedWidthAndHeightWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2942
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
2947
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
2952
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Exactly(2));
6734
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6742
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6748
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
6782
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6788
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6794
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
8056
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0 };
8057
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1 };
8058
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0 };
8059
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0 };
8060
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0 };
8061
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1 };
8062
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1 };
8063
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1 };
8064
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8066
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8067
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0 };
8068
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8069
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8070
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8071
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8072
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8073
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8074
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8076
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8077
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0 };
8078
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8079
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8080
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8081
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8082
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8083
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8084
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8086
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8087
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0 };
8088
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0 };
8089
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0 };
8090
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8091
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8092
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8093
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8094
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8096
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8097
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1 };
8098
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8099
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8100
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8101
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8102
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8103
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8104
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1 };
8106
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8107
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1 };
8108
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8109
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8110
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8111
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8112
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8113
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8114
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1 };
8116
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8117
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1 };
8118
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8120
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8121
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1 };
8122
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1 };
8123
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1 };
8124
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1 };
8126
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8127
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8128
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8129
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8130
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8131
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8132
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8133
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8134
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8139
public void Control_SetBounds_InvokeIntIntIntIntBoundsSpecified_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedX, int expectedY, int expectedWidth, int expectedHeight, int expectedLayoutCallCount)
8224
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8225
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8226
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8227
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 31, 40, 0 };
8228
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 41, 0 };
8229
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8230
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 10, 1 };
8231
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8232
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8233
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8234
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8235
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8236
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8237
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8238
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8239
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8240
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8241
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8246
public void Control_SetBounds_InvokeIntIntIntIntBoundsSpecifiedWithConstrainedSize_Success(Size minimumSize, Size maximumSize, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedX, int expectedY, int expectedWidth, int expectedHeight, int expectedLayoutCallCount)
8335
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0 };
8336
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, -7, -8, 1 };
8337
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, -4, -4, 1 };
8338
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, -4, -4, 1 };
8339
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, -4, -4, 1 };
8340
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, -3, -4, 1 };
8341
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, -4, -2, 1 };
8342
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, -3, -2, 1 };
8343
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 26, 36, 1 };
8348
public void Control_SetBounds_InvokeIntIntIntIntBoundsSpecifiedWithCustomStyle_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedX, int expectedY, int expectedWidth, int expectedHeight, int expectedClientWidth, int expectedClientHeight, int expectedLayoutCallCount)
8433
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8434
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1, 2 };
8435
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 1 };
8436
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 1 };
8437
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 1 };
8438
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 2 };
8439
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 2 };
8440
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 2 };
8441
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 2 };
8443
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8444
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0, 1 };
8445
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8446
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8447
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8448
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8449
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8450
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8451
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8453
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8454
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0, 1 };
8455
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8456
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8457
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8458
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8459
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8460
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8461
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8463
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8464
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0, 1 };
8465
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0, 1 };
8466
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0, 1 };
8467
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8468
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8469
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8470
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8471
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8473
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1, 2 };
8475
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8476
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8477
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8478
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8479
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8480
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8481
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1, 2 };
8483
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8484
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1, 2 };
8485
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8486
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8487
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8488
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8489
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8490
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8491
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1, 2 };
8493
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8494
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1, 2 };
8495
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8497
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8498
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1, 2 };
8499
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1, 2 };
8500
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1, 2 };
8501
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1, 2 };
8503
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8504
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8505
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8506
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8507
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8508
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8509
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8510
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8511
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8516
public void Control_SetBounds_InvokeIntIntIntIntBoundsSpecifiedWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedX, int expectedY, int expectedWidth, int expectedHeight, int expectedLayoutCallCount, int expectedParentLayoutCallCount)
8628
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8629
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8630
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8631
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8632
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8633
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1 };
8634
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1 };
8635
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1 };
8636
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1 };
8638
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8639
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8640
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8641
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8642
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8643
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0 };
8644
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0 };
8645
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0 };
8646
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0 };
8651
public void Control_SetBounds_InvokeIntIntIntIntBoundsSpecifiedWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedX, int expectedY, int expectedWidth, int expectedHeight, int expectedLayoutCallCount, int expectedInvalidatedCallCount)
8750
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8751
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8752
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8753
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8754
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8755
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1, 2, 2 };
8756
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1, 2, 2 };
8757
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1, 2, 2 };
8758
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1, 2, 2 };
8760
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8761
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8762
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8763
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8764
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8765
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0, 2, 2 };
8766
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0, 2, 2 };
8767
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0, 2, 2 };
8768
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0, 2, 2 };
8773
public void Control_SetBounds_InvokeIntIntIntIntBoundsSpecifiedWithParentWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedX, int expectedY, int expectedWidth, int expectedHeight, int expectedLayoutCallCount, int expectedInvalidatedCallCount, int expectedParentLayoutCallCount1, int expectedParentLayoutCallCount2)
8913
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
8929
public void Control_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9042
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9067
public void Control_SetBoundsCore_InvokeWithConstrainedSize_Success(Size minimumSize, Size maximumSize, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedWidth, int expectedHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9184
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9200
public void Control_SetBoundsCore_InvokeWithCustomStyle_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedClientWidth, int expectedClientHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9313
public void Control_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9457
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9483
public void Control_SetBoundsCore_InvokeWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedWidth, int expectedHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount, int expectedInvalidatedCallCount)
9611
public void Control_SetBoundsCore_InvokeWithParentWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedWidth, int expectedHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount, int expectedInvalidatedCallCount)
10156
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
10158
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified); public new void SetClientSizeCore(int width, int height) => base.SetClientSizeCore(width, height);
System\Windows\Forms\ControlTests.Properties.cs (1)
1015
.Setup(e => e.InitLayout(control,
BoundsSpecified
.None));
System\Windows\Forms\Layout\FlowLayoutTests.cs (3)
18
engine.InitLayout(control,
BoundsSpecified
.All);
26
Assert.Throws<NotSupportedException>(() => engine.InitLayout("child",
BoundsSpecified
.All));
34
Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null,
BoundsSpecified
.All));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
16
engine.InitLayout(new ScrollableControl(),
BoundsSpecified
.All);
23
Assert.Throws<NotSupportedException>(() => engine.InitLayout("child",
BoundsSpecified
.All));
30
Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null,
BoundsSpecified
.All));
System\Windows\Forms\ListBoxTests.cs (2)
6510
public new void ScaleControl(SizeF factor,
BoundsSpecified
specified) => base.ScaleControl(factor, specified);
6512
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
System\Windows\Forms\ScrollBarTests.cs (48)
1768
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
1776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
1777
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
1778
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
1779
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
1780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
1783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
1784
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
1785
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1788
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
1789
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
1790
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
1791
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
1792
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1794
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
1795
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
1796
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
1797
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
1798
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1803
public void ScrollBar_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
1816
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
1824
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
1825
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
1826
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
1827
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1828
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
1830
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
1831
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
1832
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
1833
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1834
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1836
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
1837
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
1838
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
1839
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1840
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
1842
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
1843
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
1844
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
1845
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1846
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
1851
public void ScrollBar_GetScaledBounds_InvokeVertical_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
3157
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
3216
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2257
public new void ScaleControl(SizeF factor,
BoundsSpecified
specified) => base.ScaleControl(factor, specified);
System\Windows\Forms\TabPageTests.cs (11)
4261
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
4277
public void TabPage_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount)
4390
public void TabPage_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount)
4534
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
4560
public void TabPage_SetBoundsCore_InvokeWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedWidth, int expectedHeight, int expectedLocationChangedCallCount, int expectedInvalidatedCallCount)
4688
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
4707
public void TabPage_SetBoundsCore_InvokeWithParentWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified)
5311
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5238
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
System\Windows\Forms\ToolStripTests.cs (1)
7662
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
System\Windows\Forms\UpDownBaseTests.cs (4)
2667
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2683
public void UpDownBase_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
3234
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
TextBoxBaseTests.cs (8)
6450
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
6468
public void TextBoxBase_SetBoundsCore_InvokeAutoSize_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
6581
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
6599
public void TextBoxBase_SetBoundsCore_InvokeMultiline_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
6715
public void TextBoxBase_SetBoundsCore_InvokeNotAutoSize_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
7783
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
TrackBarTests.cs (20)
2838
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2855
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2857
if ((specified &
BoundsSpecified
.Height) != 0)
2874
foreach (
BoundsSpecified
specified in new
BoundsSpecified
[] {
BoundsSpecified
.Height,
BoundsSpecified
.Size,
BoundsSpecified
.All })
2888
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2890
if ((specified &
BoundsSpecified
.Width) != 0)
2907
foreach (
BoundsSpecified
specified in new
BoundsSpecified
[] {
BoundsSpecified
.Width,
BoundsSpecified
.Size,
BoundsSpecified
.All })
2924
public void TrackBar_SetBoundsCore_Invoke_Success(bool autoSize, Orientation orientation, int x, int y, int width, int height,
BoundsSpecified
specified, int expectedWidth, int expectedHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
3370
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
System.Windows.Forms.UI.IntegrationTests (2)
AnchorLayoutTests.cs (2)
222
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10,
BoundsSpecified
.None);
225
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10,
BoundsSpecified
.All);