148 references to ClientRectangle
System.Web.Mobile (1)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
36Rectangle r = ClientRectangle;
System.Windows.Forms (136)
winforms\Managed\System\WinForms\ButtonBase.cs (5)
570return ClientRectangle; 594return ClientRectangle; 874Rectangle r = ClientRectangle; 1133ShowToolTip = (this.ClientRectangle.Width < preferredSize.Width || this.ClientRectangle.Height < preferredSize.Height);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1536layout.client = LayoutUtils.DeflateRect(Control.ClientRectangle, Control.Padding);
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (3)
49Rectangle r = Control.ClientRectangle; 130Rectangle r = Control.ClientRectangle; 209Rectangle r = Control.ClientRectangle;
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (3)
30Rectangle r = Control.ClientRectangle; 70Rectangle r = Control.ClientRectangle; 131Rectangle r = Control.ClientRectangle;
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (6)
73ButtonRenderer.DrawButton(e.Graphics, Control.ClientRectangle, false, pbState); 76ButtonRenderer.DrawButtonForHandle(e.Graphics, Control.ClientRectangle, false, pbState, this.Control.HandleInternal); 127ControlPaint.DrawBackgroundImage(e.Graphics, Control.BackgroundImage, Color.Transparent, Control.BackgroundImageLayout, Control.ClientRectangle, bounds, Control.DisplayRectangle.Location, Control.RightToLeft); 151PaintThemedButtonBackground(e, Control.ClientRectangle, up); 160Rectangle bounds = Control.ClientRectangle; 203Rectangle r = Control.ClientRectangle;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (1)
68PaintButtonBackground(e, Control.ClientRectangle, null);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (3)
34PaintButtonBackground(e, Control.ClientRectangle, null); 59PaintButtonBackground(e, Control.ClientRectangle, null); 88PaintButtonBackground(e, Control.ClientRectangle, null);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (1)
29PaintButtonBackground(e, Control.ClientRectangle, null);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (1)
73PaintButtonBackground(e, Control.ClientRectangle, null);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (3)
30PaintButtonBackground(e, Control.ClientRectangle, null); 52PaintButtonBackground(e, Control.ClientRectangle, null); 75PaintButtonBackground(e, Control.ClientRectangle, null);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (1)
27PaintButtonBackground(e, Control.ClientRectangle, null);
winforms\Managed\System\WinForms\ComboBox.cs (2)
5932clientRect = comboBox.ClientRectangle; 5961return (combo.ClientRectangle == clientRect && combo.RightToLeft == origRightToLeft);
winforms\Managed\System\WinForms\Control.cs (10)
5806Rectangle parentClient = parent.ClientRectangle; 7285NotifyInvalidate(this.ClientRectangle); 9419cliprect = Rectangle.Intersect(this.ClientRectangle, cliprect); 9628ControlPaint.DrawBackgroundImage(e.Graphics, BackgroundImage, backColor, BackgroundImageLayout, ClientRectangle, rectangle, scrollLocation, RightToLeft); 9737Rectangle clientRectangle = ClientRectangle; 12876if (ClientRectangle.Contains( client )) { 13680clip = ClientRectangle; 13698bufferedGraphics = BufferContext.Allocate(dc, ClientRectangle); 13788using (PaintEventArgs e = new PrintPaintEventArgs(m, m.WParam, ClientRectangle)) { 16106return this.ClientRectangle.Contains(this.PointToClient(Control.MousePosition));
winforms\Managed\System\WinForms\DataGrid.cs (5)
340horizScrollBar.Top = ClientRectangle.Height - horizScrollBar.Height; 347vertScrollBar.Left = ClientRectangle.Width - vertScrollBar.Width; 4487Rectangle newClientRectangle = this.ClientRectangle; 5344newLayout.Inside = ClientRectangle; 5745newLayout.ClientRectangle = ClientRectangle;
winforms\Managed\System\WinForms\DataGridView.cs (5)
498this.layout.ClientRectangle = this.ClientRectangle; 504this.horizScrollBar.Top = this.ClientRectangle.Height - horizScrollBar.Height; 512this.vertScrollBar.Left = this.ClientRectangle.Width - vertScrollBar.Width; 2692Rectangle rectDisplay = this.ClientRectangle; 4860activate &= this.ClientRectangle.Contains(PointToClient(mouseCoord));
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
4939if (!cellBounds.IntersectsWith(this.owner.DataGridView.ClientRectangle))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
4338newLayout.Inside = this.ClientRectangle; 6057if (!this.ClientRectangle.Contains(ptMouse)) 16581bool mouseOverToolTipControl = this.toolTipControl.Activated && this.ClientRectangle.Contains(PointToClient(Control.MousePosition)); 17892this.normalClientRectangle = this.ClientRectangle; 26116if (!this.ClientRectangle.Contains(ptMouse)) 29899if (contextMenuStrip != null && this.ClientRectangle.Contains(client))
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
2111if (!rowBounds.IntersectsWith(this.owner.DataGridView.ClientRectangle))
winforms\Managed\System\WinForms\Form.cs (2)
4021Rectangle clientRect = mdiclient.ClientRectangle; 5075e.Graphics.FillRectangle(SystemBrushes.AppWorkspace, ClientRectangle);
winforms\Managed\System\WinForms\GroupBox.cs (1)
551Rectangle textRectangle = ClientRectangle; // Max text bounding box passed to drawing methods to support RTL.
winforms\Managed\System\WinForms\HScrollProperties.cs (1)
35return ParentControl.ClientRectangle.Width;
winforms\Managed\System\WinForms\Label.cs (2)
1517Rectangle face = LayoutUtils.DeflateRect(ClientRectangle, Padding); 1537Rectangle clientRect = this.ClientRectangle;
winforms\Managed\System\WinForms\LinkLabel.cs (4)
199return LayoutUtils.DeflateRect(ClientRectangle, Padding); 1288Rectangle imageBounds = CalcImageRenderBounds(i, ClientRectangle, RtlTranslateAlignment(ImageAlign)); 1300DrawImage(e.Graphics, i, ClientRectangle, RtlTranslateAlignment(ImageAlign)); 1505using (PaintEventArgs e = new PaintEventArgs(g, ClientRectangle)) {
winforms\Managed\System\WinForms\ListView.cs (6)
2536if (!ClientRectangle.IntersectsWith(itemBounds)) 2617if (!ClientRectangle.IntersectsWith(itemBounds)) 2650if (this.ClientRectangle.IntersectsWith(subItemBounds)) 3542if (!this.ClientRectangle.Contains(x, y)) { 4725rectInvalid.Height += this.ClientRectangle.Bottom - rectInvalid.Bottom; 4726rectInvalid.Width += this.ClientRectangle.Right - rectInvalid.Right;
winforms\Managed\System\WinForms\PictureBox.cs (5)
439Rectangle result = LayoutUtils.DeflateRect(ClientRectangle, Padding); 462float ratio = Math.Min((float)ClientRectangle.Width / (float)imageSize.Width, (float)ClientRectangle.Height / (float)imageSize.Height); 465result.X = (ClientRectangle.Width - result.Width) /2; 466result.Y = (ClientRectangle.Height - result.Height) /2;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (5)
542pevent.Graphics.FillRectangle(backBrush, ClientRectangle); 554pevent.Graphics.DrawString(SR.GetString(SR.PrintPreviewExceptionPrinting), Font, brush, ClientRectangle, format); 557pevent.Graphics.DrawString(SR.GetString(SR.PrintPreviewNoPages), Font, brush, ClientRectangle, format); 627pevent.Graphics.FillRectangle(backBrush, ClientRectangle); 748Rectangle rect = ClientRectangle;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
5066Rectangle r = this.ClientRectangle;
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (3)
117Rectangle newRect = ClientRectangle; 124if (ClientRectangle.Width != rect.Width || ClientRectangle.Height != rect.Height) {
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (2)
199DDB_Draw3DBorder(pevent.Graphics, Control.ClientRectangle, true); 203Rectangle rect = Control.ClientRectangle;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (6)
1048Rectangle clientRect = this.ClientRectangle; 2222Rectangle rect = ClientRectangle; 2362Rectangle r = ClientRectangle; 3773Rectangle newRect = ClientRectangle; 6721ClientRectangle.Width <= psheet.SelectedGridEntry.GetValueTextWidth(this.Text, g, this.Font)) { 6853psheet.ToolTip.PositionToolTip(this, ClientRectangle);
winforms\Managed\System\WinForms\ScrollableControl.cs (16)
265Rectangle rect = base.ClientRectangle; 406Rectangle client = ClientRectangle; 426Rectangle currentClient = ClientRectangle; 641displayRect = ClientRectangle; 709Rectangle client = ClientRectangle; 724Rectangle client = ClientRectangle; 841Rectangle client = ClientRectangle; 875Rectangle cr = ClientRectangle; 909Rectangle client = ClientRectangle; 945Rectangle client = ClientRectangle; 1140int minX = ClientRectangle.Width - width; 1141int minY = ClientRectangle.Height - height; 1236HorizontalScroll.largeChange = ClientRectangle.Width; 1255VerticalScroll.largeChange = ClientRectangle.Height; 1312Rectangle client = ClientRectangle; 1390Rectangle client = ClientRectangle;
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1710g.FillRectangle(textureBrush, ClientRectangle);
winforms\Managed\System\WinForms\StatusStrip.cs (1)
621if (ClientRectangle.Contains(PointToClient(new Point(x, y)))) {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
2266if (ClientRectangle.Contains( client )) {
winforms\Managed\System\WinForms\ToolStrip.cs (3)
3839PaintTransparentBackground(e, ClientRectangle, transparentRegion); 4296gripRectangle.X = ClientRectangle.Right - gripRectangle.Width - Grip.Margin.Horizontal; 4433Rectangle clientBounds = this.ClientRectangle;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1451if (!ClientRectangle.Contains(mea.Location)) { 1986bounds.Intersect(toolStrip.ClientRectangle);
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1051if (!activeToolStrip.ClientRectangle.Contains(pt.x, pt.y)) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
207return LayoutUtils.InflateRect(this.ClientRectangle, DragMargin); 720CurrentFeedbackRect = new FeedbackRectangle(toolStripToDrag.ClientRectangle); 1004if (ClientRectangle.Contains(currentCursorLoc)) {
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
116Rectangle overlap = ToolStrip.ClientRectangle;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
246Rectangle clientRectangle = toolStrip.ClientRectangle; 389Rectangle clientRectangle = toolStrip.ClientRectangle;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (1)
221Rectangle bounds = e.ToolStrip.ClientRectangle;
winforms\Managed\System\WinForms\TreeView.cs (1)
3394if (ClientRectangle.Contains( client )) {
winforms\Managed\System\WinForms\UpDownBase.cs (5)
805Rectangle bounds = ClientRectangle; 1570Rectangle rect = ClientRectangle; 1613Rectangle rectUp = ClientRectangle, rectDown = ClientRectangle; 1735Rectangle clientRect = ClientRectangle;
winforms\Managed\System\WinForms\VScrollProperties.cs (1)
32return ParentControl.ClientRectangle.Height;
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1629if (ClientRectangle.Contains(client)) {
System.Windows.Forms.DataVisualization (4)
WinForm\ChartWinControl.cs (4)
429paintBufferBitmap.Width < scaleX * ClientRectangle.Width || 430paintBufferBitmap.Height < scaleY * ClientRectangle.Height) 439paintBufferBitmap = new Bitmap((int)(ClientRectangle.Width * scaleX), (int)(ClientRectangle.Height * scaleY), e.Graphics);
System.Workflow.ComponentModel (7)
AuthoringOM\Design\DesignerWidgets.cs (3)
1616Rectangle rectangle = ClientRectangle; 2270this.infoTip.UpdateToolTipRectangle(this.parentControl.ClientRectangle); 2271this.inplaceTip.UpdateToolTipRectangle(this.parentControl.ClientRectangle);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (4)
509Rectangle lineRectangle = new Rectangle(this.ClientRectangle.Left, this.artifactLabel.Bottom + ((this.typeNameTableLayoutPanel.Top + this.typeTextBox.Top - this.artifactLabel.Bottom) / 2), this.ClientRectangle.Width, 1); 514lineRectangle = new Rectangle(this.ClientRectangle.Left, this.helpTextHolder.Bottom + ((this.okCancelTableLayoutPanel.Top + this.buttonOK.Top - this.helpTextHolder.Bottom) / 2), this.ClientRectangle.Width, 1);