703 references to BoundsSpecified
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
55
BoundsSpecified
specified )
System.Windows.Forms (174)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1154
protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => bounds;
1173
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Control.cs (50)
315
RequiredScaling =
BoundsSpecified
.All;
624
parent.LayoutEngine.InitLayout(this,
BoundsSpecified
.Size);
1010
set => SetBounds(value.X, value.Y, value.Width, value.Height,
BoundsSpecified
.All);
2157
set => SetBounds(_x, _y, _width, value,
BoundsSpecified
.Height);
2409
set => SetBounds(value, _y, _width, _height,
BoundsSpecified
.X);
2421
set => SetBounds(value.X, value.Y, _width, _height,
BoundsSpecified
.Location);
2792
internal
BoundsSpecified
RequiredScaling
2795
? (
BoundsSpecified
)(_requiredScaling & RequiredScalingMask)
2796
:
BoundsSpecified
.None;
3013
set => SetBounds(_x, _y, value.Width, value.Height,
BoundsSpecified
.Size);
3175
set => SetBounds(_x, value, _width, _height,
BoundsSpecified
.Y);
3532
set => SetBounds(_x, _y, value, _height,
BoundsSpecified
.Width);
4227
ParentInternal?.LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5235
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified)
5252
if ((specified &
BoundsSpecified
.X) != 0)
5257
if ((specified &
BoundsSpecified
.Y) != 0)
5286
if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified &
BoundsSpecified
.Width) != 0)
5292
if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified &
BoundsSpecified
.Height) != 0)
5724
LayoutEngine.InitLayout(this,
BoundsSpecified
.All);
5730
private void InitScaling(
BoundsSpecified
specified)
9408
LayoutEngine.InitLayout(child,
BoundsSpecified
.All);
9615
BoundsSpecified
includedSpecified =
BoundsSpecified
.None;
9616
BoundsSpecified
excludedSpecified =
BoundsSpecified
.None;
9625
excludedSpecified |= (~RequiredScaling &
BoundsSpecified
.All);
9628
if (includedSpecified !=
BoundsSpecified
.None)
9633
if (excludedSpecified !=
BoundsSpecified
.None)
9640
RequiredScaling =
BoundsSpecified
.None;
9659
protected virtual void ScaleControl(SizeF factor,
BoundsSpecified
specified)
9686
specified &= ~(
BoundsSpecified
.X |
BoundsSpecified
.Width);
9691
specified &= ~(
BoundsSpecified
.Y |
BoundsSpecified
.Height);
9753
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height,
BoundsSpecified
.All);
9782
SetBounds(sx, sy, sw, sh,
BoundsSpecified
.All);
9943
SetBoundsCore(x, y, width, height,
BoundsSpecified
.All);
9957
InitScaling(
BoundsSpecified
.All);
9964
public void SetBounds(int x, int y, int width, int height,
BoundsSpecified
specified)
9966
if ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None)
9971
if ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None)
9976
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None)
9981
if ((specified &
BoundsSpecified
.Height) ==
BoundsSpecified
.None)
10017
/// <param name="specified">A bitwise combination of the <see cref="
BoundsSpecified
"/> values.</param>
10019
protected virtual void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
12582
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)
1936
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
3257
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
3261
if ((specified &
BoundsSpecified
.Height) !=
BoundsSpecified
.None && DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
27443
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
27445
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width && width > UpperSize)
27450
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)
1769
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
203
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
2600
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
4660
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)
1205
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height,
BoundsSpecified
.Location);
1497
protected override void ScaleControl(SizeF factor,
BoundsSpecified
specified)
1526
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)
174
public void SetBounds(Rectangle bounds,
BoundsSpecified
specified)
181
protected virtual void SetBoundsCore(Rectangle bounds,
BoundsSpecified
specified)
System\Windows\Forms\Layout\CommonProperties.cs (13)
180
element.SetBounds(GetSpecifiedBounds(element),
BoundsSpecified
.None);
214
element.SetBounds(bounds,
BoundsSpecified
.Size);
238
element.SetBounds(bounds,
BoundsSpecified
.Size);
271
/// whole reason the <see cref="
BoundsSpecified
"/> enum exists.) Consider this scenario. You set a <see cref="Button"/>
289
internal static void UpdateSpecifiedBounds(IArrangedElement element, int x, int y, int width, int height,
BoundsSpecified
specified)
295
bool xChangedButNotSpecified = ((specified &
BoundsSpecified
.X) ==
BoundsSpecified
.None) & x != originalBounds.X;
296
bool yChangedButNotSpecified = ((specified &
BoundsSpecified
.Y) ==
BoundsSpecified
.None) & y != originalBounds.Y;
297
bool wChangedButNotSpecified = ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.None) & width != originalBounds.Width;
298
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)
1281
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)
1663
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified
specified)
1665
if ((specified &
BoundsSpecified
.Width) ==
BoundsSpecified
.Width)
1670
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)
2427
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2435
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, Rectangle.Empty };
2436
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2437
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2438
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2439
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2441
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2442
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2443
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2444
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2445
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2447
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 12) };
2448
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2449
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2450
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2451
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2453
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, -12) };
2454
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2455
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2456
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2457
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2462
public void Control_GetScaledBounds_Invoke_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2475
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2476
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.X, Rectangle.Empty };
2477
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Y, Rectangle.Empty };
2478
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(0, 0, 4, 0) };
2479
yield return new object[] { Rectangle.Empty, new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(0, 0, 0, 4) };
2481
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 4, 4) };
2482
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2483
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2484
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 4, 4) };
2485
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2487
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2488
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2489
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2490
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2491
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2493
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 2, 4) };
2494
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2495
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2496
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 2, 4) };
2497
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2499
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 6, 4) };
2500
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2501
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2502
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2503
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2508
public void Control_GetScaledBounds_InvokeWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2521
public void Control_GetScaledBounds_InvokeWithSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2568
public void Control_GetScaledBounds_InvokeWithInvalidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected, object designerHost)
2600
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2608
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(1, 2, 0, 0) };
2609
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2610
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2611
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2612
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2614
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2615
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2616
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2617
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2618
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2620
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(1, 2, 6, 12) };
2621
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2622
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2623
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2624
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2626
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(1, 2, -6, -12) };
2627
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2628
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2629
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2630
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2635
public void Control_GetScaledBounds_InvokeWithValidDesignModeSite_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2674
public void Control_GetScaledBounds_InvokeTopLevel_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2689
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2697
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 0) };
2698
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2699
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2700
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2701
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 0) };
2703
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2704
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2705
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2706
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2707
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2709
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 12) };
2710
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2711
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2712
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2713
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 12) };
2715
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, -12) };
2716
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2717
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2718
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2719
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, -12) };
2724
public void Control_GetScaledBounds_InvokeFixedWidth_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2739
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2747
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 0, 4) };
2748
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2749
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2750
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 0, 4) };
2751
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2753
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2754
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2755
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2756
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2757
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2759
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 6, 4) };
2760
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2761
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2762
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 6, 4) };
2763
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2765
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, -6, 4) };
2766
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2767
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2768
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, -6, 4) };
2769
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2774
public void Control_GetScaledBounds_InvokeFixedHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2789
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
2797
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.All, new Rectangle(0, 0, 3, 4) };
2798
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.X, new Rectangle(0, 2, 3, 4) };
2799
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Y, new Rectangle(1, 0, 3, 4) };
2800
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2801
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(0, 0),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2803
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.All, new Rectangle(1, 2, 3, 4) };
2804
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.X, new Rectangle(1, 2, 3, 4) };
2805
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Y, new Rectangle(1, 2, 3, 4) };
2806
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2807
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2809
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.All, new Rectangle(2, 6, 3, 4) };
2810
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.X, new Rectangle(2, 2, 3, 4) };
2811
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Y, new Rectangle(1, 6, 3, 4) };
2812
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2813
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(2, 3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2815
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.All, new Rectangle(-2, -6, 3, 4) };
2816
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.X, new Rectangle(-2, 2, 3, 4) };
2817
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Y, new Rectangle(1, -6, 3, 4) };
2818
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Width, new Rectangle(1, 2, 3, 4) };
2819
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(-2, -3),
BoundsSpecified
.Height, new Rectangle(1, 2, 3, 4) };
2824
public void Control_GetScaledBounds_InvokeFixedWidthAndHeight_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2840
public void Control_GetScaledBounds_InvokeFixedWidthAndHeightWithStyles_ReturnsExpected(Rectangle bounds, SizeF factor,
BoundsSpecified
specified, Rectangle expected)
2960
.Setup(e => e.InitLayout(control,
BoundsSpecified
.All))
2965
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Once());
2970
mockLayoutEngine.Verify(e => e.InitLayout(control,
BoundsSpecified
.All), Times.Exactly(2));
6752
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6760
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6766
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
6800
.Setup(e => e.InitLayout(child,
BoundsSpecified
.All))
6806
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount));
6812
mockLayoutEngine.Verify(e => e.InitLayout(child,
BoundsSpecified
.All), Times.Exactly(expectedInitLayoutCallCount * 2));
8074
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0 };
8075
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1 };
8076
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0 };
8077
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0 };
8078
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0 };
8079
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1 };
8080
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1 };
8081
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1 };
8082
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8084
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8085
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0 };
8086
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8087
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8088
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8089
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8090
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8091
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0 };
8092
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0 };
8094
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8095
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0 };
8096
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8097
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8098
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8099
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8100
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8101
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0 };
8102
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0 };
8104
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8105
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0 };
8106
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0 };
8107
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0 };
8108
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8109
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8110
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8111
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0 };
8112
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0 };
8114
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8115
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1 };
8116
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8117
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8118
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8119
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8120
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0 };
8121
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1 };
8122
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1 };
8124
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8125
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1 };
8126
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8127
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8128
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8129
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0 };
8130
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8131
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1 };
8132
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1 };
8134
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8135
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1 };
8136
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8137
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8138
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0 };
8139
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1 };
8140
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1 };
8141
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1 };
8142
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1 };
8144
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8145
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8146
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8147
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8148
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8149
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8150
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8151
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8152
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0 };
8157
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)
8242
yield return new object[] { Size.Empty, Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8243
yield return new object[] { new Size(10, 20), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8244
yield return new object[] { new Size(30, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8245
yield return new object[] { new Size(31, 40), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 31, 40, 0 };
8246
yield return new object[] { new Size(30, 41), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 41, 0 };
8247
yield return new object[] { new Size(40, 50), Size.Empty, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8248
yield return new object[] { Size.Empty, new Size(20, 10), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 10, 1 };
8249
yield return new object[] { Size.Empty, new Size(30, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8250
yield return new object[] { Size.Empty, new Size(31, 40), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8251
yield return new object[] { Size.Empty, new Size(30, 41), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8252
yield return new object[] { Size.Empty, new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8253
yield return new object[] { new Size(10, 20), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1 };
8254
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8255
yield return new object[] { new Size(10, 20), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 20, 30, 1 };
8256
yield return new object[] { new Size(30, 40), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8257
yield return new object[] { new Size(30, 40), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 0 };
8258
yield return new object[] { new Size(40, 50), new Size(20, 30), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8259
yield return new object[] { new Size(40, 50), new Size(40, 50), 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 40, 50, 0 };
8264
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)
8353
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0 };
8354
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, -7, -8, 1 };
8355
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, -4, -4, 1 };
8356
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, -4, -4, 1 };
8357
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, -4, -4, 1 };
8358
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, -3, -4, 1 };
8359
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, -4, -2, 1 };
8360
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, -3, -2, 1 };
8361
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 26, 36, 1 };
8366
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)
8451
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8452
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, -3, -4, 1, 2 };
8453
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 1 };
8454
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 1 };
8455
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 1 };
8456
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 2 };
8457
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 2 };
8458
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 2 };
8459
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 2 };
8461
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8462
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.X, -1, 0, 0, 0, 0, 1 };
8463
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8464
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8465
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8466
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8467
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8468
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.X, 0, 0, 0, 0, 0, 0 };
8469
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.X, 1, 0, 0, 0, 0, 1 };
8471
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8472
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Y, 0, -2, 0, 0, 0, 1 };
8473
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8474
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8475
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8476
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8477
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8478
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Y, 0, 0, 0, 0, 0, 0 };
8479
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Y, 0, 2, 0, 0, 0, 1 };
8481
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8482
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Location, -1, -2, 0, 0, 0, 1 };
8483
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Location, 1, 0, 0, 0, 0, 1 };
8484
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Location, 0, 2, 0, 0, 0, 1 };
8485
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8486
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8487
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8488
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Location, 0, 0, 0, 0, 0, 0 };
8489
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Location, 1, 2, 0, 0, 0, 1 };
8491
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8492
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Width, 0, 0, -3, 0, 1, 2 };
8493
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8494
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8495
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8496
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8497
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Width, 0, 0, 0, 0, 0, 0 };
8498
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Width, 0, 0, 1, 0, 1, 2 };
8499
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Width, 0, 0, 30, 0, 1, 2 };
8501
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8502
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Height, 0, 0, 0, -4, 1, 2 };
8503
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8504
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8505
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8506
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Height, 0, 0, 0, 0, 0, 0 };
8507
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8508
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Height, 0, 0, 0, 2, 1, 2 };
8509
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Height, 0, 0, 0, 40, 1, 2 };
8511
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8512
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.Size, 0, 0, -3, -4, 1, 2 };
8513
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8514
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8515
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.Size, 0, 0, 0, 0, 0, 0 };
8516
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.Size, 0, 0, 1, 0, 1, 2 };
8517
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.Size, 0, 0, 0, 2, 1, 2 };
8518
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.Size, 0, 0, 1, 2, 1, 2 };
8519
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.Size, 0, 0, 30, 40, 1, 2 };
8521
yield return new object[] { 0, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8522
yield return new object[] { -1, -2, -3, -4,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8523
yield return new object[] { 1, 0, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8524
yield return new object[] { 0, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8525
yield return new object[] { 1, 2, 0, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8526
yield return new object[] { 0, 0, 1, 0,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8527
yield return new object[] { 0, 0, 0, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8528
yield return new object[] { 0, 0, 1, 2,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8529
yield return new object[] { 1, 2, 30, 40,
BoundsSpecified
.None, 0, 0, 0, 0, 0, 0 };
8534
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)
8646
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8647
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8648
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8649
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8650
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8651
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1 };
8652
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1 };
8653
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1 };
8654
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1 };
8656
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0 };
8657
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0 };
8658
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0 };
8659
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0 };
8660
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0 };
8661
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0 };
8662
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0 };
8663
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0 };
8664
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0 };
8669
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)
8768
yield return new object[] { true, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8769
yield return new object[] { true, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8770
yield return new object[] { true, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8771
yield return new object[] { true, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8772
yield return new object[] { true, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8773
yield return new object[] { true, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 1, 2, 2 };
8774
yield return new object[] { true, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 1, 2, 2 };
8775
yield return new object[] { true, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 1, 2, 2 };
8776
yield return new object[] { true, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 1, 2, 2 };
8778
yield return new object[] { false, 0, 0, 0, 0,
BoundsSpecified
.All, 0, 0, 0, 0, 0, 0, 0, 0 };
8779
yield return new object[] { false, -1, -2, -3, -4,
BoundsSpecified
.All, -1, -2, 0, 0, 0, 0, 1, 2 };
8780
yield return new object[] { false, 1, 0, 0, 0,
BoundsSpecified
.All, 1, 0, 0, 0, 0, 0, 1, 1 };
8781
yield return new object[] { false, 0, 2, 0, 0,
BoundsSpecified
.All, 0, 2, 0, 0, 0, 0, 1, 1 };
8782
yield return new object[] { false, 1, 2, 0, 0,
BoundsSpecified
.All, 1, 2, 0, 0, 0, 0, 1, 1 };
8783
yield return new object[] { false, 0, 0, 1, 0,
BoundsSpecified
.All, 0, 0, 1, 0, 1, 0, 2, 2 };
8784
yield return new object[] { false, 0, 0, 0, 2,
BoundsSpecified
.All, 0, 0, 0, 2, 1, 0, 2, 2 };
8785
yield return new object[] { false, 0, 0, 1, 2,
BoundsSpecified
.All, 0, 0, 1, 2, 1, 0, 2, 2 };
8786
yield return new object[] { false, 1, 2, 30, 40,
BoundsSpecified
.All, 1, 2, 30, 40, 1, 0, 2, 2 };
8791
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)
8931
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
8947
public void Control_SetBoundsCore_Invoke_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9060
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9085
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)
9202
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9218
public void Control_SetBoundsCore_InvokeWithCustomStyle_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedClientWidth, int expectedClientHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9331
public void Control_SetBoundsCore_InvokeWithParent_Success(int x, int y, int width, int height,
BoundsSpecified
specified, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
9475
foreach (
BoundsSpecified
specified in Enum.GetValues(typeof(
BoundsSpecified
)))
9501
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)
9629
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)
10174
public new Rectangle GetScaledBounds(Rectangle bounds, SizeF factor,
BoundsSpecified
specified) => base.GetScaledBounds(bounds, factor, specified);
10176
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);