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