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)
1155
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => bounds;
1174
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Control.cs (46)
314
RequiredScaling =
BoundsSpecified
.All;
623
parent.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
1009
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2156
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2408
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2420
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
2791
internal
BoundsSpecified
RequiredScaling
2794
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
2795
:
BoundsSpecified
.None;
3012
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3174
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3531
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4226
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5274
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5291
if ((specified &
BoundsSpecified
.X) != 0)
5296
if ((specified &
BoundsSpecified
.Y) != 0)
5325
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5331
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
5763
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5769
private void InitScaling(
BoundsSpecified
specified)
9447
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
9654
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
9655
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
9664
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
9667
if (includedSpecified !=
BoundsSpecified
.None)
9672
if (excludedSpecified !=
BoundsSpecified
.None)
9679
RequiredScaling =
BoundsSpecified
.None;
9698
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
9784
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
9813
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
9974
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
9988
InitScaling(
BoundsSpecified
.All);
9995
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
9997
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
10002
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
10007
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
10012
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10048
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10050
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
12612
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)
1937
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
3258
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
3262
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
27459
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27461
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27466
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height && height > UpperSize)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
103
ParentInternal.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
632
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Controls\Labels\Label.cs (5)
1379
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1381
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1386
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1540
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1459
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
2069
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
2082
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1651
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2586
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
159
BoundsSpecified
.Size);
166
BoundsSpecified
.Size);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
869
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
726
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
736
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)
1763
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);
2597
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)
1202
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
1494
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
1523
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
982
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)
394
SetBounds(r.X, r.Y, r.Height, r.Width,
BoundsSpecified
.All);
1006
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1016
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1023
if ((specified &
BoundsSpecified
.Width) !=
BoundsSpecified
.None)
System\Windows\Forms\Form.cs (24)
152
private
BoundsSpecified
_restoredWindowBoundsSpecified;
555
toLayout.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
682
BoundsSpecified
preClientUpdateRestoredWindowBoundsSpecified = _restoredWindowBoundsSpecified;
4212
form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height),
BoundsSpecified
.None);
5005
if ((_restoredWindowBoundsSpecified &
BoundsSpecified
.Size) != 0)
5131
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5147
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
5155
specified &= ~
BoundsSpecified
.Location;
5167
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
5175
_restoredWindowBoundsSpecified |= (specified & (
BoundsSpecified
.X |
BoundsSpecified
.Y));
5178
_restoredWindowBoundsSpecified |= (specified & (
BoundsSpecified
.Width |
BoundsSpecified
.Height));
5180
if ((specified &
BoundsSpecified
.X) != 0)
5185
if ((specified &
BoundsSpecified
.Y) != 0)
5190
if ((specified &
BoundsSpecified
.Width) != 0)
5196
if ((specified &
BoundsSpecified
.Height) != 0)
5204
if ((specified &
BoundsSpecified
.X) != 0)
5209
if ((specified &
BoundsSpecified
.Y) != 0)
5214
if ((specified &
BoundsSpecified
.Width) != 0 || _restoreBounds.Width == -1)
5219
if ((specified &
BoundsSpecified
.Height) != 0 || _restoreBounds.Height == -1)
5324
SetBounds(x + workingArea.X, y + workingArea.Y, width, height,
BoundsSpecified
.All);
6457
_restoredWindowBoundsSpecified =
BoundsSpecified
.Size;
6459
_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)
199
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
209
/// <see cref="ScaleControl(SizeF,
BoundsSpecified
)" /> to enforce a minimum and maximum size.
213
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
216
specified &= ~
BoundsSpecified
.Location;
220
protected override unsafe void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Panels\Panel.cs (1)
86
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)
718
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
137
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
484
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
489
specified &= ~
BoundsSpecified
.Width;
493
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)
2411
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
2414
(specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width ||
2415
(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)
1665
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1667
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width)
1672
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.Height)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1736
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)
1216
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
1428
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)
2396
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2404
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, Rectangle.Empty };
2405
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2406
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2407
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2408
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2410
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2411
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2412
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2413
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2414
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2416
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 12) };
2417
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2418
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2419
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2420
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2422
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, -12) };
2423
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2424
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2425
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2426
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2431
public void Control_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2444
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2445
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.X, Rectangle.Empty };
2446
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Y, Rectangle.Empty };
2447
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(0, 0, 4, 0) };
2448
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(0, 0, 0, 4) };
2450
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2451
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2452
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2453
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 4, 4) };
2454
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2456
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2457
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2458
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2459
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2460
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2462
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 2, 4) };
2463
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2464
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2465
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 2, 4) };
2466
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2468
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 6, 4) };
2469
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2470
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2471
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2472
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2477
public void Control_GetScaledBounds_InvokeWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2490
public void Control_GetScaledBounds_InvokeWithSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2537
public void Control_GetScaledBounds_InvokeWithInvalidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected, object designerHost)
2569
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2577
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(1, 2, 0, 0) };
2578
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2579
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2580
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2581
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2583
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2584
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2585
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2586
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2587
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2589
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(1, 2, 6, 12) };
2590
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2591
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2592
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2593
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2595
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(1, 2, -6, -12) };
2596
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2597
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2598
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2599
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2604
public void Control_GetScaledBounds_InvokeWithValidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2643
public void Control_GetScaledBounds_InvokeTopLevel_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2658
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2666
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
2667
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2668
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2669
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2670
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2672
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2673
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2674
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2675
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2676
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2678
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
2679
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2680
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2681
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2682
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2684
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
2685
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2686
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2687
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2688
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2693
public void Control_GetScaledBounds_InvokeFixedWidth_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2708
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2716
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
2717
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2718
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2719
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2720
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2722
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2723
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2724
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2725
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2726
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2728
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
2729
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2730
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2731
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2732
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2734
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
2735
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2736
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2737
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2738
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2743
public void Control_GetScaledBounds_InvokeFixedHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2758
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2766
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 4) };
2767
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2768
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2769
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2770
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2772
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2773
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2774
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2775
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2778
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 4) };
2779
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2781
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2784
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, 4) };
2785
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2787
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2788
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2793
public void Control_GetScaledBounds_InvokeFixedWidthAndHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2809
public void Control_GetScaledBounds_InvokeFixedWidthAndHeightWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2929
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
2934
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
2939
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Exactly(2));
6721
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6729
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6735
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
6769
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6775
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6781
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
8043
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0 };
8044
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1 };
8045
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0 };
8046
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0 };
8047
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0 };
8048
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1 };
8049
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1 };
8050
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1 };
8051
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8053
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8054
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0 };
8055
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8056
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8057
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8058
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8059
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8060
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8061
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8063
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8064
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0 };
8065
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8066
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8067
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8068
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8069
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8070
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8071
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8073
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8074
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0 };
8075
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0 };
8076
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0 };
8077
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8078
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8079
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8080
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8081
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8083
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8084
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1 };
8085
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8086
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8087
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8088
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8089
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8090
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8091
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1 };
8093
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8094
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1 };
8095
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8096
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8097
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8098
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8099
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8100
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8101
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1 };
8103
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8104
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1 };
8105
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8106
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8107
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8108
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1 };
8109
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1 };
8110
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1 };
8111
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1 };
8113
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8114
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8115
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8116
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8117
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8118
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8120
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8121
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8126
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)
8211
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8212
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8213
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8214
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 31, 40, 0 };
8215
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 41, 0 };
8216
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8217
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 10, 1 };
8218
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8219
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8220
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8221
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8222
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8223
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8224
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8225
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8226
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8227
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8228
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8233
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)
8322
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0 };
8323
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, -7, -8, 1 };
8324
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, -4, -4, 1 };
8325
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, -4, -4, 1 };
8326
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, -4, -4, 1 };
8327
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, -3, -4, 1 };
8328
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, -4, -2, 1 };
8329
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, -3, -2, 1 };
8330
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 26, 36, 1 };
8335
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)
8420
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8421
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1, 2 };
8422
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 1 };
8423
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 1 };
8424
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 1 };
8425
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 2 };
8426
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 2 };
8427
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 2 };
8428
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 2 };
8430
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8431
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0, 1 };
8432
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8433
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8434
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8435
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8436
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8437
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8438
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8440
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8441
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0, 1 };
8442
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8443
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8444
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8445
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8446
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8447
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8448
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8450
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8451
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0, 1 };
8452
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0, 1 };
8453
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0, 1 };
8454
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8455
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8456
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8457
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8458
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8460
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8461
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1, 2 };
8462
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8463
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8464
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8465
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8466
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8467
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8468
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1, 2 };
8470
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8471
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1, 2 };
8472
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8473
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8475
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8476
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8477
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8478
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1, 2 };
8480
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8481
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1, 2 };
8482
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8483
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8484
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8485
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1, 2 };
8486
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1, 2 };
8487
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1, 2 };
8488
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1, 2 };
8490
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8491
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8492
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8493
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8494
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8495
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8497
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8498
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8503
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)
8615
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8616
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8617
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8618
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8619
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8620
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1 };
8621
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1 };
8622
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1 };
8623
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1 };
8625
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8626
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8627
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8628
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8629
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8630
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0 };
8631
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0 };
8632
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0 };
8633
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0 };
8638
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)
8737
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8738
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8739
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8740
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8741
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8742
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1, 2, 2 };
8743
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1, 2, 2 };
8744
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1, 2, 2 };
8745
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1, 2, 2 };
8747
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8748
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8749
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8750
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8751
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8752
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0, 2, 2 };
8753
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0, 2, 2 };
8754
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0, 2, 2 };
8755
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0, 2, 2 };
8760
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)
8900
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
8916
public void Control_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9029
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9054
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)
9171
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9187
public void Control_SetBoundsCore_InvokeWithCustomStyle_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedClientWidth, int expectedClientHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9300
public void Control_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9444
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9470
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)
9598
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)
10143
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
10145
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)
1013
.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)
7655
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)
3228
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)
223
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10,
BoundsSpecified
.None);
226
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.Height + 10,
BoundsSpecified
.All);