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