699 references to BoundsSpecified
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
49
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)
27461
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27463
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27468
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)
4655
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)
724
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.Tests (494)
System\Windows\Forms\ComboBoxTests.cs (1)
2934
public new void ScaleControl(SizeF factor,
BoundsSpecified
specified) => base.ScaleControl(factor, specified);
System\Windows\Forms\ControlTests.ControlCollection.cs (3)
241
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
256
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
268
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
System\Windows\Forms\ControlTests.cs (2)
1214
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
1426
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)
35
[EnumData<
BoundsSpecified
>]
36
public void Control_RequiredScaling_Set_GetReturnsExpected(
BoundsSpecified
value)
System\Windows\Forms\ControlTests.Methods.cs (383)
2394
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2402
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, Rectangle.Empty };
2403
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2404
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2405
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2406
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2408
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2409
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2410
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2411
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2412
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2414
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 12) };
2415
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2416
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2417
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2418
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2420
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, -12) };
2421
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2422
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2423
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2424
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2429
public void Control_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2442
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2443
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.X, Rectangle.Empty };
2444
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Y, Rectangle.Empty };
2445
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(0, 0, 4, 0) };
2446
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(0, 0, 0, 4) };
2448
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2449
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2450
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2451
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 4, 4) };
2452
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2454
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2455
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2456
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2457
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2458
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2460
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 2, 4) };
2461
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2462
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2463
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 2, 4) };
2464
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2466
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 6, 4) };
2467
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2468
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2469
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2470
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2475
public void Control_GetScaledBounds_InvokeWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2488
public void Control_GetScaledBounds_InvokeWithSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2535
public void Control_GetScaledBounds_InvokeWithInvalidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected, object designerHost)
2567
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2575
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(1, 2, 0, 0) };
2576
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2577
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2578
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2579
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2581
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2582
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2583
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2584
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2585
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2587
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(1, 2, 6, 12) };
2588
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2589
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2590
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2591
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2593
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(1, 2, -6, -12) };
2594
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2595
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2596
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2597
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2602
public void Control_GetScaledBounds_InvokeWithValidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2641
public void Control_GetScaledBounds_InvokeTopLevel_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2656
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2664
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
2665
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2666
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2667
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2668
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2670
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2671
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2672
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2673
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2674
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2676
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
2677
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2678
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2679
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2680
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2682
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
2683
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2684
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2685
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2686
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2691
public void Control_GetScaledBounds_InvokeFixedWidth_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2706
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2714
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
2715
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2716
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2717
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2718
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2720
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2721
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2722
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2723
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2724
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2726
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
2727
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2728
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2729
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2730
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2732
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
2733
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2734
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2735
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2736
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2741
public void Control_GetScaledBounds_InvokeFixedHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2756
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2764
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 4) };
2765
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2766
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2767
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2768
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2770
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2771
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2772
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2773
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2774
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 4) };
2777
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2778
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2779
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, 4) };
2783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2784
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2785
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2791
public void Control_GetScaledBounds_InvokeFixedWidthAndHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2807
public void Control_GetScaledBounds_InvokeFixedWidthAndHeightWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2927
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
2932
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
2937
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Exactly(2));
6719
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6727
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6733
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
6767
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6773
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6779
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
8041
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0 };
8042
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1 };
8043
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0 };
8044
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0 };
8045
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0 };
8046
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1 };
8047
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1 };
8048
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1 };
8049
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8051
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8052
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0 };
8053
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8054
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8055
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8056
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8057
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8058
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8059
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8061
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8062
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0 };
8063
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8064
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8065
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8066
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8067
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8068
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8069
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8071
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8072
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0 };
8073
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0 };
8074
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0 };
8075
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8076
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8077
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8078
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8079
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8081
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8082
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1 };
8083
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8084
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8085
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8086
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8087
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8088
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8089
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1 };
8091
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8092
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1 };
8093
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8094
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8095
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8096
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8097
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8098
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8099
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1 };
8101
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8102
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1 };
8103
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8104
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8105
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8106
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1 };
8107
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1 };
8108
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1 };
8109
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1 };
8111
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8112
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8113
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8114
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8115
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8116
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8117
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8118
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8124
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)
8209
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8210
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8211
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8212
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 31, 40, 0 };
8213
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 41, 0 };
8214
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8215
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 10, 1 };
8216
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8217
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8218
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8219
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8220
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8221
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8222
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8223
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8224
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8225
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8226
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8231
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)
8320
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0 };
8321
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, -7, -8, 1 };
8322
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, -4, -4, 1 };
8323
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, -4, -4, 1 };
8324
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, -4, -4, 1 };
8325
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, -3, -4, 1 };
8326
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, -4, -2, 1 };
8327
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, -3, -2, 1 };
8328
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 26, 36, 1 };
8333
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)
8418
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8419
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1, 2 };
8420
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 1 };
8421
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 1 };
8422
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 1 };
8423
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 2 };
8424
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 2 };
8425
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 2 };
8426
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 2 };
8428
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8429
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0, 1 };
8430
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8431
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8432
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8433
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8434
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8435
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8436
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8438
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8439
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0, 1 };
8440
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8441
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8442
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8443
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8444
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8445
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8446
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8448
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8449
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0, 1 };
8450
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0, 1 };
8451
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0, 1 };
8452
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8453
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8454
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8455
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8456
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8458
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8459
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1, 2 };
8460
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8461
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8462
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8463
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8464
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8465
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8466
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1, 2 };
8468
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8469
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1, 2 };
8470
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8471
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8472
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8473
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8475
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8476
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1, 2 };
8478
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8479
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1, 2 };
8480
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8481
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8482
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8483
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1, 2 };
8484
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1, 2 };
8485
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1, 2 };
8486
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1, 2 };
8488
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8489
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8490
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8491
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8492
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8493
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8494
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8495
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8501
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)
8613
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8614
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8615
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8616
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8617
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8618
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1 };
8619
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1 };
8620
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1 };
8621
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1 };
8623
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8624
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8625
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8626
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8627
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8628
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0 };
8629
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0 };
8630
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0 };
8631
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0 };
8636
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)
8735
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8736
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8737
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8738
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8739
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8740
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1, 2, 2 };
8741
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1, 2, 2 };
8742
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1, 2, 2 };
8743
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1, 2, 2 };
8745
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8746
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8747
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8748
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8749
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8750
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0, 2, 2 };
8751
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0, 2, 2 };
8752
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0, 2, 2 };
8753
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0, 2, 2 };
8758
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)
8898
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
8914
public void Control_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9027
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9052
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)
9169
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9185
public void Control_SetBoundsCore_InvokeWithCustomStyle_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedClientWidth, int expectedClientHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9298
public void Control_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9442
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9468
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)
9596
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)
10141
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
10143
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)
1011
.Setup(e => e.InitLayout(control,
BoundsSpecified
.None));
System\Windows\Forms\Layout\FlowLayoutTests.cs (3)
16
engine.InitLayout(control,
BoundsSpecified
.All);
24
Assert.Throws<NotSupportedException>(() => engine.InitLayout("child",
BoundsSpecified
.All));
32
Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null,
BoundsSpecified
.All));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
14
engine.InitLayout(new ScrollableControl(),
BoundsSpecified
.All);
21
Assert.Throws<NotSupportedException>(() => engine.InitLayout("child",
BoundsSpecified
.All));
28
Assert.Throws<ArgumentNullException>("child", () => engine.InitLayout(null,
BoundsSpecified
.All));
System\Windows\Forms\ListBoxTests.cs (2)
6508
public new void ScaleControl(SizeF factor,
BoundsSpecified
specified) => base.ScaleControl(factor, specified);
6510
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)
1766
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
1774
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
1775
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
1776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
1777
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
1778
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1780
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
1781
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
1782
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
1783
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1784
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1786
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
1787
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
1788
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
1789
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
1790
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1792
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
1793
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
1794
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
1795
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
1796
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1801
public void ScrollBar_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
1814
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
1822
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
1823
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
1824
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
1825
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1826
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
1828
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
1829
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
1830
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
1831
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1832
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
1834
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
1835
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
1836
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
1837
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1838
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
1840
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
1841
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
1842
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
1843
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
1844
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
1849
public void ScrollBar_GetScaledBounds_InvokeVertical_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
3155
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
3214
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2255
public new void ScaleControl(SizeF factor,
BoundsSpecified
specified) => base.ScaleControl(factor, specified);
System\Windows\Forms\TabPageTests.cs (11)
4259
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
4275
public void TabPage_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount)
4388
public void TabPage_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount)
4532
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
4558
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)
4686
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
4705
public void TabPage_SetBoundsCore_InvokeWithParentWithHandle_Success(bool resizeRedraw, int x, int y, int width, int height,
BoundsSpecified
specified)
5309
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)
5236
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)
7653
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)
2665
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2681
public void UpDownBase_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
3226
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
TextBoxBaseTests.cs (8)
6448
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
6466
public void TextBoxBase_SetBoundsCore_InvokeAutoSize_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
6579
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
6597
public void TextBoxBase_SetBoundsCore_InvokeMultiline_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
6713
public void TextBoxBase_SetBoundsCore_InvokeNotAutoSize_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
7781
public new void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified) => base.SetBoundsCore(x, y, width, height, specified);
TrackBarTests.cs (20)
2836
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2853
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2855
if ((specified &
BoundsSpecified
.Height) != 0)
2872
foreach (
BoundsSpecified
specified in new
BoundsSpecified
[] {
BoundsSpecified
.Height,
BoundsSpecified
.Size,
BoundsSpecified
.All })
2886
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2888
if ((specified &
BoundsSpecified
.Width) != 0)
2905
foreach (
BoundsSpecified
specified in new
BoundsSpecified
[] {
BoundsSpecified
.Width,
BoundsSpecified
.Size,
BoundsSpecified
.All })
2922
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)
3368
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);