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)
316
RequiredScaling =
BoundsSpecified
.All;
625
parent.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
1011
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2158
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2410
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2422
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
2793
internal
BoundsSpecified
RequiredScaling
2796
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
2797
:
BoundsSpecified
.None;
3014
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3176
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3533
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4228
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5276
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5293
if ((specified &
BoundsSpecified
.X) != 0)
5298
if ((specified &
BoundsSpecified
.Y) != 0)
5327
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5333
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
5765
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5771
private void InitScaling(
BoundsSpecified
specified)
9449
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
9656
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
9657
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
9666
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
9669
if (includedSpecified !=
BoundsSpecified
.None)
9674
if (excludedSpecified !=
BoundsSpecified
.None)
9681
RequiredScaling =
BoundsSpecified
.None;
9700
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
9786
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
9815
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
9976
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
9990
InitScaling(
BoundsSpecified
.All);
9997
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
9999
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
10004
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
10009
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
10014
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10050
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10052
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
12614
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)
27462
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27464
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27469
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)
202
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
2598
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)
292
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)
395
SetBounds(r.X, r.Y, r.Height, r.Width,
BoundsSpecified
.All);
1007
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1017
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None)
1024
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)
517
element.SetBounds(newElementBounds,
BoundsSpecified
.None);
953
element.SetBounds(CommonProperties.GetSpecifiedBounds(element),
BoundsSpecified
.None);
965
element.SetBounds(CommonProperties.GetSpecifiedBounds(element),
BoundsSpecified
.All);
1060
element.SetBounds(bounds,
BoundsSpecified
.None);
1091
private protected override void InitLayoutCore(IArrangedElement element,
BoundsSpecified
specified)
1093
Debug.Assert(specified ==
BoundsSpecified
.None || GetCachedBounds(element) == element.Bounds,
1096
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)
2436
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2444
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, Rectangle.Empty };
2445
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2446
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2447
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2448
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2450
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2451
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2452
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2453
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2454
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2456
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 12) };
2457
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2458
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2459
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2460
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2462
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, -12) };
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, -6, 4) };
2466
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2471
public void Control_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2484
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2485
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.X, Rectangle.Empty };
2486
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Y, Rectangle.Empty };
2487
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(0, 0, 4, 0) };
2488
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(0, 0, 0, 4) };
2490
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2491
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2492
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2493
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 4, 4) };
2494
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2496
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2497
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2498
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2499
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2500
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2502
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 2, 4) };
2503
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2504
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2505
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 2, 4) };
2506
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2508
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 6, 4) };
2509
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2510
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2511
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2512
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2517
public void Control_GetScaledBounds_InvokeWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2530
public void Control_GetScaledBounds_InvokeWithSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2577
public void Control_GetScaledBounds_InvokeWithInvalidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected, object designerHost)
2609
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2617
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(1, 2, 0, 0) };
2618
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2619
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2620
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2621
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2623
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2624
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2625
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2626
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2627
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2629
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(1, 2, 6, 12) };
2630
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2631
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2632
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2633
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2635
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(1, 2, -6, -12) };
2636
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2637
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2638
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2639
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2644
public void Control_GetScaledBounds_InvokeWithValidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2683
public void Control_GetScaledBounds_InvokeTopLevel_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2698
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2706
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
2707
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2708
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2709
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2710
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2712
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2713
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2714
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2715
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2716
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2718
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
2719
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2720
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2721
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2722
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2724
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
2725
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2726
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2727
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2728
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2733
public void Control_GetScaledBounds_InvokeFixedWidth_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2748
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2756
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
2757
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2758
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2759
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2760
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2762
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2763
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2764
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2765
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2766
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2768
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
2769
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2770
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2771
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2772
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2774
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
2775
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2776
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2777
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2778
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2783
public void Control_GetScaledBounds_InvokeFixedHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2798
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2806
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 4) };
2807
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2808
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2809
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2810
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2812
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2813
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2814
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2815
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2816
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2818
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 4) };
2819
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2820
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2821
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2822
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2824
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, 4) };
2825
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2826
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2827
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2828
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2833
public void Control_GetScaledBounds_InvokeFixedWidthAndHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2849
public void Control_GetScaledBounds_InvokeFixedWidthAndHeightWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2969
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
2974
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
2979
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Exactly(2));
6761
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6769
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6775
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
6809
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6815
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6821
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
8083
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0 };
8084
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1 };
8085
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0 };
8086
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0 };
8087
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0 };
8088
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1 };
8089
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1 };
8090
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1 };
8091
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8093
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8094
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0 };
8095
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8096
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8097
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8098
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8099
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8100
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8101
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8103
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8104
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0 };
8105
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8106
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8107
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8108
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8109
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8110
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8111
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8113
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8114
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0 };
8115
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0 };
8116
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0 };
8117
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8118
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8120
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8121
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8123
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8124
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1 };
8125
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8126
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8127
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8128
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8129
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8130
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8131
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1 };
8133
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8134
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1 };
8135
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8136
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8137
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8138
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8139
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8140
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8141
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1 };
8143
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8144
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1 };
8145
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8146
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8147
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8148
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1 };
8149
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1 };
8150
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1 };
8151
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1 };
8153
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8154
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8155
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8156
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8157
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8158
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8159
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8160
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8161
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8166
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)
8251
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8252
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8253
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8254
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 31, 40, 0 };
8255
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 41, 0 };
8256
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8257
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 10, 1 };
8258
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8259
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8260
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8261
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8262
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8263
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8264
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8265
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8266
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8267
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8268
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8273
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)
8362
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0 };
8363
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, -7, -8, 1 };
8364
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, -4, -4, 1 };
8365
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, -4, -4, 1 };
8366
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, -4, -4, 1 };
8367
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, -3, -4, 1 };
8368
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, -4, -2, 1 };
8369
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, -3, -2, 1 };
8370
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 26, 36, 1 };
8375
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)
8460
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8461
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1, 2 };
8462
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 1 };
8463
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 1 };
8464
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 1 };
8465
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 2 };
8466
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 2 };
8467
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 2 };
8468
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 2 };
8470
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8471
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0, 1 };
8472
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8473
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8475
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8476
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8477
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8478
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8480
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8481
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0, 1 };
8482
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8483
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8484
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8485
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8486
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8487
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8488
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8490
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8491
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0, 1 };
8492
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0, 1 };
8493
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0, 1 };
8494
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8495
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8497
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8498
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8500
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8501
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1, 2 };
8502
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8503
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8504
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8505
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8506
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8507
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8508
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1, 2 };
8510
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8511
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1, 2 };
8512
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8513
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8514
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8515
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8516
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8517
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8518
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1, 2 };
8520
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8521
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1, 2 };
8522
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8523
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8524
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8525
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1, 2 };
8526
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1, 2 };
8527
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1, 2 };
8528
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1, 2 };
8530
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8531
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8532
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8533
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8534
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8535
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8536
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8537
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8538
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8543
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)
8655
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8656
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8657
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8658
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8659
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8660
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1 };
8661
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1 };
8662
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1 };
8663
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1 };
8665
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8666
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8667
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8668
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8669
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8670
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0 };
8671
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0 };
8672
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0 };
8673
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0 };
8678
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)
8777
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8778
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8779
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8780
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8781
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8782
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1, 2, 2 };
8783
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1, 2, 2 };
8784
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1, 2, 2 };
8785
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1, 2, 2 };
8787
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8788
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8789
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8790
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8791
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8792
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0, 2, 2 };
8793
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0, 2, 2 };
8794
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0, 2, 2 };
8795
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0, 2, 2 };
8800
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)
8940
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
8956
public void Control_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9069
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9094
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)
9211
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9227
public void Control_SetBoundsCore_InvokeWithCustomStyle_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedClientWidth, int expectedClientHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9340
public void Control_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9484
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9510
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)
9638
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)
10183
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
10185
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)
7684
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);