489 references to ClientRectangle
PresentationUI (2)
MS\Internal\Documents\DialogDivider.cs (2)
81
ClientRectangle
.Left,
83
ClientRectangle
.Right,
System.Windows.Forms (138)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
179
if (IsDegenerate(_owningControl.TryGetTarget(out Control? target) ? target.
ClientRectangle
: Rectangle.Empty))
System\Windows\Forms\Control.cs (11)
2216
private protected virtual bool IsHoveredWithMouse() =>
ClientRectangle
.Contains(PointToClient(MousePosition));
4493
Rectangle parentClient = _parent.
ClientRectangle
;
5838
NotifyInvalidate(
ClientRectangle
);
7880
cliprect = Rectangle.Intersect(
ClientRectangle
, cliprect);
8076
ClientRectangle
,
8117
Rectangle clientRectangle =
ClientRectangle
;
11079
if (
ClientRectangle
.Contains(client))
11702
clip =
ClientRectangle
;
11725
bufferedGraphics = BufferContext.Allocate(dc,
ClientRectangle
);
11730
Rectangle band =
ClientRectangle
;
11808
using PaintEventArgs e = new PrintPaintEventArgs(m, hdc,
ClientRectangle
);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (7)
600
/// or may have flicker. Returning <see cref="Control.
ClientRectangle
"/> is safe for correct painting but may
615
return
ClientRectangle
;
631
/// or may have flicker. Returning <see cref="Control.
ClientRectangle
"/> is safe for correct painting but may
635
internal virtual Rectangle DownChangeRectangle =>
ClientRectangle
;
871
Rectangle r =
ClientRectangle
;
1183
ShowToolTip = (
ClientRectangle
.Width < preferredSize.Width ||
ClientRectangle
.Height < preferredSize.Height);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
592
Client = LayoutUtils.DeflateRect(Control.
ClientRectangle
, Control.Padding),
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (3)
38
Rectangle r = Control.
ClientRectangle
;
131
Rectangle r = Control.
ClientRectangle
;
224
Rectangle r = Control.
ClientRectangle
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
18
Rectangle r = Control.
ClientRectangle
;
64
Rectangle r = Control.
ClientRectangle
;
122
Rectangle r = Control.
ClientRectangle
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (5)
58
Control.
ClientRectangle
,
99
Control.
ClientRectangle
,
125
PaintThemedButtonBackground(e, Control.
ClientRectangle
, up);
137
Rectangle bounds = Control.
ClientRectangle
;
187
Rectangle r = Control.
ClientRectangle
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (1)
74
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (3)
27
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
62
Control.PaintBackground(e, Control.
ClientRectangle
);
105
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
25
PaintButtonBackground(e, Control.
ClientRectangle
, null);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (1)
77
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
24
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
53
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
78
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (1)
20
PaintButtonBackground(e, Control.
ClientRectangle
, background: null);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
240
if (!_owningComboBox.IsHandleCreated || IsDegenerate(_owningComboBox.
ClientRectangle
))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
33
_clientRect = comboBox.
ClientRectangle
;
64
return (combo.
ClientRectangle
== _clientRect && combo.RightToLeft == _origRightToLeft);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (5)
455
ClientRectangle =
ClientRectangle
462
_horizScrollBar.Top =
ClientRectangle
.Height - _horizScrollBar.Height;
470
_vertScrollBar.Left =
ClientRectangle
.Width - _vertScrollBar.Width;
2122
Rectangle rectDisplay =
ClientRectangle
;
3852
activate &=
ClientRectangle
.Contains(PointToClient(mouseCoord));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
4370
:
ClientRectangle
;
6024
if (!
ClientRectangle
.Contains(ptMouse))
16161
bool mouseOverToolTipControl = _toolTipControl.Activated &&
ClientRectangle
.Contains(PointToClient(MousePosition));
17461
_normalClientRectangle =
ClientRectangle
;
26004
if (!
ClientRectangle
.Contains(ptMouse))
30014
if (contextMenuStrip is not null &&
ClientRectangle
.Contains(client))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
173
if (!cellBounds.IntersectsWith(_owner.DataGridView.
ClientRectangle
))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
199
if (!rowBounds.IntersectsWith(_owningDataGridViewRow.DataGridView.
ClientRectangle
))
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
463
Rectangle textRectangle =
ClientRectangle
;
System\Windows\Forms\Controls\Labels\Label.cs (2)
1254
Rectangle face = LayoutUtils.DeflateRect(
ClientRectangle
, Padding);
1271
Rectangle clientRect =
ClientRectangle
;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
145
private Rectangle ClientRectWithPadding => LayoutUtils.DeflateRect(
ClientRectangle
, Padding);
1156
Rectangle imageBounds = CalcImageRenderBounds(image,
ClientRectangle
, RtlTranslateAlignment(ImageAlign));
1167
DrawImage(e.Graphics, image,
ClientRectangle
, RtlTranslateAlignment(ImageAlign));
1377
using PaintEventArgs e = new(g,
ClientRectangle
);
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
70
Rectangle visibleArea = _owningListBox.RectangleToScreen(_owningListBox.
ClientRectangle
);
219
int listBoxHeight = _owningListBox.
ClientRectangle
.Height;
System\Windows\Forms\Controls\ListView\ListView.cs (6)
2629
if (!
ClientRectangle
.IntersectsWith(itemBounds))
2693
if (!
ClientRectangle
.IntersectsWith(itemBounds))
2726
if (
ClientRectangle
.IntersectsWith(subItemBounds))
3705
if (!
ClientRectangle
.Contains(x, y))
5022
rectInvalid.Height +=
ClientRectangle
.Bottom - rectInvalid.Bottom;
5023
rectInvalid.Width +=
ClientRectangle
.Right - rectInvalid.Right;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (5)
344
Rectangle result = LayoutUtils.DeflateRect(
ClientRectangle
, Padding);
368
float ratio = Math.Min(
ClientRectangle
.Width / (float)imageSize.Width,
ClientRectangle
.Height / (float)imageSize.Height);
371
result.X = (
ClientRectangle
.Width - result.Width) / 2;
372
result.Y = (
ClientRectangle
.Height - result.Height) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
40
Rectangle r =
ClientRectangle
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
71
DDB_Draw3DBorder(pevent, Control.
ClientRectangle
, raised: true);
76
Rectangle rect = Control.
ClientRectangle
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
119
Rectangle currentClientRectangle =
ClientRectangle
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
883
Rectangle clientRect =
ClientRectangle
;
1967
Rectangle rect =
ClientRectangle
;
2115
Rectangle r =
ClientRectangle
;
3575
Rectangle newRect =
ClientRectangle
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (2)
171
ClientRectangle
.Width <= PropertyGridView.SelectedGridEntry.GetValueTextWidth(Text, graphics, Font))
296
PositionTooltip(this, PropertyGridView.ToolTip,
ClientRectangle
);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
869
Rectangle rectangle =
ClientRectangle
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2050
if (
ClientRectangle
.Contains(client))
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (3)
124
RECT clientRectangle = Owner.
ClientRectangle
;
247
Rectangle rect = Owner.
ClientRectangle
;
358
if (Owner is null || !Owner.IsHandleCreated || IsDegenerate(Owner.
ClientRectangle
))
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
632
if (
ClientRectangle
.Contains(PointToClient(PARAM.ToPoint(m.LParamInternal))))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3674
PaintTransparentBackground(e,
ClientRectangle
, transparentRegion);
4182
gripRectangle.X =
ClientRectangle
.Right - gripRectangle.Width - Grip.Margin.Horizontal;
4330
Rectangle clientBounds =
ClientRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1210
if (!
ClientRectangle
.Contains(mea.Location))
1763
bounds.Intersect(toolStrip.
ClientRectangle
);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
337
if (!activeToolStrip.
ClientRectangle
.Contains(translatedLocation))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
157
return LayoutUtils.InflateRect(
ClientRectangle
, s_dragMargin);
674
CurrentFeedbackRect ??= new FeedbackRectangle(toolStripToDrag.
ClientRectangle
);
812
if (
ClientRectangle
.Contains(currentCursorLoc))
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
111
Rectangle overlap = ToolStrip.
ClientRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
211
Rectangle clientRectangle = toolStrip.
ClientRectangle
;
357
Rectangle clientRectangle = toolStrip.
ClientRectangle
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
238
Rectangle bounds = toolStrip.
ClientRectangle
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3433
if (
ClientRectangle
.Contains(client) && treeNode.ContextMenuStrip is not null)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
525
Rectangle bounds =
ClientRectangle
;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
145
Rectangle rect =
ClientRectangle
;
184
Rectangle rectUp =
ClientRectangle
, rectDown =
ClientRectangle
;
323
Rectangle clientRect =
ClientRectangle
;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1363
if (
ClientRectangle
.Contains(client))
System\Windows\Forms\Form.AccessibleObject.cs (1)
22
? owner.RectangleToScreen(owner.
ClientRectangle
)
System\Windows\Forms\Form.cs (2)
3650
Rectangle clientRect = mdiclient is null ? Rectangle.Empty : mdiclient.
ClientRectangle
;
4427
e.GraphicsInternal.FillRectangle(SystemBrushes.AppWorkspace,
ClientRectangle
);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1557
g.FillRectangle(textureBrush,
ClientRectangle
);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
340
protected override void OnPaintBackground(PaintEventArgs e) => PaintTransparentBackground(e,
ClientRectangle
);
428
Rectangle rect =
ClientRectangle
;
System\Windows\Forms\Scrolling\HScrollProperties.cs (1)
15
private protected override int GetPageSize(ScrollableControl parent) => parent.
ClientRectangle
.Width;
System\Windows\Forms\Scrolling\ScrollableControl.cs (17)
194
Rectangle rect =
ClientRectangle
;
291
Rectangle client =
ClientRectangle
;
311
Rectangle currentClient =
ClientRectangle
;
555
_displayRect =
ClientRectangle
;
616
Rectangle client =
ClientRectangle
;
632
Rectangle client =
ClientRectangle
;
749
Rectangle client =
ClientRectangle
;
795
RECT rcClip =
ClientRectangle
;
796
RECT rcUpdate =
ClientRectangle
;
830
Rectangle client =
ClientRectangle
;
854
Rectangle client =
ClientRectangle
;
1056
int minX =
ClientRectangle
.Width - width;
1057
int minY =
ClientRectangle
.Height - height;
1163
HorizontalScroll._largeChange =
ClientRectangle
.Width;
1193
VerticalScroll._largeChange =
ClientRectangle
.Height;
1265
Rectangle client =
ClientRectangle
;
1360
Rectangle client =
ClientRectangle
;
System\Windows\Forms\Scrolling\VScrollProperties.cs (1)
15
private protected override int GetPageSize(ScrollableControl parent) => parent.
ClientRectangle
.Height;
System.Windows.Forms.Design (35)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
478
e.Graphics.FillRectangle(gradientBrush,
ClientRectangle
);
483
e.Graphics.FillRectangle(gradientBrush,
ClientRectangle
);
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
361
graphics.FillRectangle(brush,
ClientRectangle
);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
309
Rectangle rectTabControl = _tabControl.TabPages[0].
ClientRectangle
;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (3)
184
Rectangle rc =
ClientRectangle
;
200
Rectangle rc =
ClientRectangle
;
266
Rectangle rc =
ClientRectangle
;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
198
Rectangle controlRect = controlDesigner.Control.
ClientRectangle
;
535
Rectangle clipBounds = new(0, 0, rootControl.
ClientRectangle
.Width, rootControl.
ClientRectangle
.Height);
System\Windows\Forms\Design\ComponentTray.cs (3)
621
return RectangleToScreen(
ClientRectangle
);
1267
Cursor.Clip = RectangleToScreen(
ClientRectangle
);
2274
Rectangle rc =
ClientRectangle
;
System\Windows\Forms\Design\ControlDesigner.cs (4)
690
Rectangle parentRect = parent.RectangleToScreen(parent.
ClientRectangle
);
691
Rectangle controlRect = Control.RectangleToScreen(Control.
ClientRectangle
);
2027
using PaintEventArgs e = new(g, Control.
ClientRectangle
);
2244
Rectangle clientRectangle = Control.
ClientRectangle
;
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
48
_controlRect = control.RectangleToScreen(control.
ClientRectangle
);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1863
Rectangle rect = new(
ClientRectangle
.Location,
ClientRectangle
.Size);
System\Windows\Forms\Design\DesignerFrame.cs (1)
467
if (overlayControl.
ClientRectangle
.IntersectsWith(invalidateRect))
System\Windows\Forms\Design\DesignerUtils.cs (1)
527
Rectangle face = ctrl.
ClientRectangle
;
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
301
Rectangle rc =
ClientRectangle
;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
971
if (!Destination.GetDesignerControl().
ClientRectangle
.Contains(convertedPoint))
System\Windows\Forms\Design\PanelDesigner.cs (1)
37
Rectangle rc = Control.
ClientRectangle
;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
549
if (rootControl is not null && snappedBounds.IntersectsWith(rootControl.
ClientRectangle
))
2030
Rectangle clientRect = Control.
ClientRectangle
;
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
33
Rectangle rc = ctl.
ClientRectangle
;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
71
Rectangle containerRect = containerControl.RectangleToScreen(containerControl.
ClientRectangle
);
System\Windows\Forms\Design\SplitterDesigner.cs (1)
26
Rectangle rectangle = control.
ClientRectangle
;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
155
Rectangle rectangle = control.
ClientRectangle
;
165
Rectangle rectangle = control.
ClientRectangle
;
181
Rectangle rectangle = control.
ClientRectangle
;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
240
Rectangle rc = Control.
ClientRectangle
;
474
paintEvent.Graphics.FillRectangle(brush, Control.
ClientRectangle
);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.
ClientRectangle
);
System.Windows.Forms.Tests (296)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
54
control.
ClientRectangle
.Contains(actualInClientCoordinates).Should().BeTrue();
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
39
control.
ClientRectangle
.Contains(actualInClientCoordinates).Should().BeTrue();
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
281
Rectangle expected = panel1.RectangleToScreen(panel1.
ClientRectangle
);
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
113
Rectangle controlClientRectangle = control.RectangleToScreen(control.
ClientRectangle
);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
553
Rectangle expected = tabPage.RectangleToScreen(tabPage.
ClientRectangle
);
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
108
Rectangle expected = textBoxBase.RectangleToScreen(textBoxBase.
ClientRectangle
);
System\Windows\Forms\AxHostTests.cs (2)
50
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
ClientRectangle
);
144
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
ClientRectangle
);
System\Windows\Forms\ButtonBaseTests.cs (1)
42
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
ClientRectangle
);
System\Windows\Forms\ButtonTests.cs (1)
44
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
ClientRectangle
);
System\Windows\Forms\CheckBoxTests.cs (2)
46
Assert.Equal(new Rectangle(0, 0, 104, 24), control.
ClientRectangle
);
802
downChangeRectangle.Should().Be(checkBox.
ClientRectangle
);
System\Windows\Forms\ComboBoxTests.cs (1)
47
Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.
ClientRectangle
);
System\Windows\Forms\ContainerControlTests.cs (1)
48
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
System\Windows\Forms\ControlTests.cs (5)
37
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
126
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
221
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
317
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
413
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
System\Windows\Forms\ControlTests.Methods.cs (86)
3033
Assert.Equal(control.
ClientRectangle
, e.InvalidRect);
3074
Assert.Equal(control.
ClientRectangle
, e.InvalidRect);
3148
Assert.Equal(control.
ClientRectangle
, e.InvalidRect);
3192
Assert.Equal(control.
ClientRectangle
, e.InvalidRect);
7417
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
7436
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
7528
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
7547
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
7626
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
7645
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
7744
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
7764
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
7867
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
7889
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8015
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8042
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8204
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8223
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8315
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8334
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8413
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
8432
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
8601
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8621
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8724
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8746
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8872
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
8899
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9018
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
9039
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
9160
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9181
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9289
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
9310
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
9426
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
9448
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
9581
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9605
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9739
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9768
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
9816
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
9826
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
9850
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
9866
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
9898
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
9917
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
10373
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10392
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10433
Assert.Equal(0, control.
ClientRectangle
.X);
10434
Assert.Equal(0, control.
ClientRectangle
.Y);
10435
Assert.True(control.
ClientRectangle
.Width > 0);
10436
Assert.True(control.
ClientRectangle
.Height >= 0);
10466
Assert.Equal(0, control.
ClientRectangle
.X);
10467
Assert.Equal(0, control.
ClientRectangle
.Y);
10468
Assert.True(control.
ClientRectangle
.Width > 0);
10469
Assert.True(control.
ClientRectangle
.Height >= 0);
10547
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10566
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10639
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10658
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10730
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10752
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
10797
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
ClientRectangle
);
10819
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
ClientRectangle
);
10875
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
ClientRectangle
);
10901
Assert.Equal(new Rectangle(0, 0, 3, 4), control.
ClientRectangle
);
10987
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11006
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11098
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11117
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11196
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
11215
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
11305
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11325
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11428
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11450
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11557
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11584
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
11682
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
11701
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
11791
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
11811
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
11926
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
11948
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
12055
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
12082
Assert.Equal(new Rectangle(0, 0, clientWidth, clientHeight), control.
ClientRectangle
);
System\Windows\Forms\ControlTests.Properties.cs (78)
2479
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
2498
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
2568
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
2587
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
2653
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
2672
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
2758
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
2778
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
2858
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
2880
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
2983
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
3010
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
3338
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
3348
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
3382
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
3398
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
3445
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
3464
Assert.Equal(new Rectangle(Point.Empty, value), control.
ClientRectangle
);
5729
Assert.Equal(new Rectangle(0, 0, 0, value), control.
ClientRectangle
);
5748
Assert.Equal(new Rectangle(0, 0, 0, value), control.
ClientRectangle
);
5839
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
5858
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
5927
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
5946
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
6035
Assert.Equal(new Rectangle(0, 0, 0, value), control.
ClientRectangle
);
6055
Assert.Equal(new Rectangle(0, 0, 0, value), control.
ClientRectangle
);
6147
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
ClientRectangle
);
6169
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
ClientRectangle
);
6284
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
ClientRectangle
);
6311
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
ClientRectangle
);
6692
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
6714
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
6784
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
6806
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
6882
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
6907
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
6993
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7022
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7173
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7195
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7263
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7286
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7365
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7390
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7476
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
7506
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
11113
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
ClientRectangle
);
11132
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
ClientRectangle
);
11224
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
11243
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
11319
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
11338
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
11434
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
ClientRectangle
);
11454
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
ClientRectangle
);
11551
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
11573
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
11693
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
11720
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
12128
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12149
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12218
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12240
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12316
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12340
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12425
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
12454
Assert.Equal(new Rectangle(0, 0, 0, 0), control.
ClientRectangle
);
13148
Assert.Equal(new Rectangle(0, 0, value, 0), control.
ClientRectangle
);
13167
Assert.Equal(new Rectangle(0, 0, value, 0), control.
ClientRectangle
);
13258
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
13277
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
13346
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
13365
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
13454
Assert.Equal(new Rectangle(0, 0, value, 0), control.
ClientRectangle
);
13474
Assert.Equal(new Rectangle(0, 0, value, 0), control.
ClientRectangle
);
13566
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
ClientRectangle
);
13588
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
ClientRectangle
);
13703
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
ClientRectangle
);
13730
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
ClientRectangle
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
48
Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.
ClientRectangle
);
System\Windows\Forms\DateTimePickerTests.cs (1)
51
Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.
ClientRectangle
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
56
Assert.Equal(new Rectangle(0, 0, control.ClientSize.Width, control.ClientSize.Height), control.
ClientRectangle
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\DomainUpDownTests.cs (2)
57
_sub.
ClientRectangle
.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7));
64
_sub.
ClientRectangle
.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3));
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
42
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\FormTests.cs (1)
54
Assert.Equal(new Rectangle(0, 0, control.ClientSize.Width, control.ClientSize.Height), control.
ClientRectangle
);
System\Windows\Forms\GroupBoxTests.cs (1)
40
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\HScrollBarTests.cs (4)
39
Assert.Equal(0, control.
ClientRectangle
.X);
40
Assert.Equal(0, control.
ClientRectangle
.Y);
41
Assert.True(control.
ClientRectangle
.Width > 0);
42
Assert.True(control.
ClientRectangle
.Height > 0);
System\Windows\Forms\LabelTests.cs (1)
40
Assert.Equal(new Rectangle(0, 0, 100, 23), control.
ClientRectangle
);
System\Windows\Forms\ListBoxTests.cs (1)
41
Assert.Equal(new Rectangle(0, 0, 116, 92), control.
ClientRectangle
);
System\Windows\Forms\ListControlTests.cs (1)
41
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
System\Windows\Forms\ListViewTests.cs (1)
53
Assert.Equal(new Rectangle(0, 0, 117, 93), control.
ClientRectangle
);
System\Windows\Forms\MdiClientTests.cs (11)
37
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
538
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
557
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
640
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
662
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
774
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
801
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
926
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
953
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
1088
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
1115
Assert.Equal(new Rectangle(0, 0, expectedClientWidth, expectedClientHeight), control.
ClientRectangle
);
System\Windows\Forms\MenuStripTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, 200, 24), control.
ClientRectangle
);
System\Windows\Forms\MonthCalendarTests.cs (8)
50
Assert.Equal(0, control.
ClientRectangle
.X);
51
Assert.Equal(0, control.
ClientRectangle
.Y);
52
Assert.True(control.
ClientRectangle
.Width > 0);
53
Assert.True(control.
ClientRectangle
.Height > 0);
2527
Assert.Equal(new Rectangle(Point.Empty, size), control.
ClientRectangle
);
2536
Assert.Equal(new Rectangle(Point.Empty, size), control.
ClientRectangle
);
2560
Assert.Equal(new Rectangle(Point.Empty, size), control.
ClientRectangle
);
2572
Assert.Equal(new Rectangle(Point.Empty, size), control.
ClientRectangle
);
System\Windows\Forms\PanelTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\PictureBoxTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, 100, 50), control.
ClientRectangle
);
System\Windows\Forms\ProgressBarTests.cs (1)
38
Assert.Equal(new Rectangle(0, 0, 100, 23), control.
ClientRectangle
);
System\Windows\Forms\PropertyGridTests.cs (1)
59
Assert.Equal(new Rectangle(0, 0, 130, 130), control.
ClientRectangle
);
System\Windows\Forms\RadioButtonTests.cs (1)
45
Assert.Equal(new Rectangle(0, 0, 104, 24), control.
ClientRectangle
);
System\Windows\Forms\RichTextBoxTests.cs (1)
54
Assert.Equal(new Rectangle(0, 0, 96, 92), control.
ClientRectangle
);
System\Windows\Forms\ScrollableControlTests.cs (2)
42
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
235
Assert.Equal(expected, control.
ClientRectangle
);
System\Windows\Forms\ScrollBarTests.cs (1)
37
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
System\Windows\Forms\SplitterPanelTests.cs (9)
47
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
464
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
483
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
541
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
563
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
829
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
ClientRectangle
);
848
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
ClientRectangle
);
1186
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
1205
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\SplitterTests.cs (1)
39
Assert.Equal(new Rectangle(0, 0, 3, 3), control.
ClientRectangle
);
System\Windows\Forms\StatusStripTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, 200, 22), control.
ClientRectangle
);
System\Windows\Forms\TabControlTests.cs (1)
40
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
45
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\TabPageTests.cs (18)
47
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
156
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
1899
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
1921
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
1989
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
2012
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
2090
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
2115
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
2214
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
ClientRectangle
);
2244
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
ClientRectangle
);
4346
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
4367
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
4483
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
4505
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
4638
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
4662
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
4816
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
ClientRectangle
);
4846
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.Height), control.
ClientRectangle
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
45
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
940
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
962
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
ClientRectangle
);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
47
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
ClientRectangle
);
1966
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
ClientRectangle
);
1988
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
ClientRectangle
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
44
Assert.Equal(Rectangle.Empty, control.
ClientRectangle
);
System\Windows\Forms\ToolStripTests.cs (2)
47
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
ClientRectangle
);
205
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
ClientRectangle
);
System\Windows\Forms\TreeViewTests.cs (1)
41
Assert.Equal(new Rectangle(0, 0, 117, 93), control.
ClientRectangle
);
System\Windows\Forms\UpDownBaseTests.cs (6)
44
Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7), control.
ClientRectangle
);
51
Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3), control.
ClientRectangle
);
2756
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.
ClientRectangle
);
2762
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.
ClientRectangle
);
2788
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.
ClientRectangle
);
2794
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.
ClientRectangle
);
System\Windows\Forms\UserControlTests.cs (1)
48
Assert.Equal(new Rectangle(0, 0, 150, 150), control.
ClientRectangle
);
System\Windows\Forms\VScrollBarTests.cs (4)
38
Assert.Equal(0, control.
ClientRectangle
.X);
39
Assert.Equal(0, control.
ClientRectangle
.Y);
40
Assert.True(control.
ClientRectangle
.Width > 0);
41
Assert.True(control.
ClientRectangle
.Height > 0);
System\Windows\Forms\WebBrowserTests.cs (1)
39
Assert.Equal(new Rectangle(0, 0, 250, 250), control.
ClientRectangle
);
TextBoxBaseTests.cs (6)
6537
Assert.Equal(new Rectangle(0, 0, width - 4, s_preferredHeight - 4), control.
ClientRectangle
);
6558
Assert.Equal(new Rectangle(0, 0, width - 4, s_preferredHeight - 4), control.
ClientRectangle
);
6671
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
ClientRectangle
);
6692
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
ClientRectangle
);
6787
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
ClientRectangle
);
6808
Assert.Equal(new Rectangle(0, 0, width - 4, height - 4), control.
ClientRectangle
);
TextBoxTests.cs (1)
47
Assert.Equal(new Rectangle(0, 0, 96, control.PreferredHeight - 4), control.
ClientRectangle
);
TrackBarTests.cs (3)
40
Assert.Equal(new Rectangle(0, 0, 104, s_dimension), control.
ClientRectangle
);
2997
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
3018
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
WebBrowserBaseTests.cs (4)
76
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
95
Assert.Equal(new Rectangle(0, 0, width, height), control.
ClientRectangle
);
192
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
214
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
ClientRectangle
);
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (1)
191
Rectangle endRect = dragDropForm.RichTextBoxDropTarget.
ClientRectangle
;
FormTests.cs (2)
65
int borderSize = (form.Width - form.
ClientRectangle
.Width) / 2;
126
int borderSize = (form.Width - form.
ClientRectangle
.Width) / 2;
ListBoxAccesibleObjectTests.cs (1)
39
Point testPoint = listBox.PointToScreen(new Point(0, listBox.
ClientRectangle
.Height - 1));
WindowsFormsIntegration (7)
System\Windows\Integration\HostUtils.cs (7)
178
if (control.
ClientRectangle
.Width == 0 || control.
ClientRectangle
.Height == 0)
183
SD.Bitmap bitmap = new SD.Bitmap(control.
ClientRectangle
.Width, control.
ClientRectangle
.Height);
186
using (PaintEventArgs args = new PaintEventArgs(g, control.
ClientRectangle
))
201
SD.Bitmap returnBitmap = new SD.Bitmap(childElementHost.
ClientRectangle
.Width, childElementHost.
ClientRectangle
.Height);
WinFormsControlsTest (6)
CustomComCtl32Button.cs (4)
97
int x = sender.
ClientRectangle
.X + 1;
98
int y = sender.
ClientRectangle
.Y + 1;
99
int width = sender.
ClientRectangle
.Width - 10;
100
int height = sender.
ClientRectangle
.Height - 10;
TrackBars.cs (2)
43
trackBar1.Width =
ClientRectangle
.Width - trackBar1.Left * 2;
50
trackBar1.Height =
ClientRectangle
.Height - trackBar1.Top * 2;