434 references to Rectangle
System.Drawing (29)
commonui\System\Drawing\Advanced\GPRECT.cs (1)
37
return new
Rectangle
(X, Y, Width, Height);
commonui\System\Drawing\Advanced\MetafileHeader.cs (2)
119
new
Rectangle
(wmf.X, wmf.Y, wmf.Width, wmf.Height) :
120
new
Rectangle
(emf.X, emf.Y, emf.Width, emf.Height);
commonui\System\Drawing\Bitmap.cs (1)
588
Rectangle rectangle = new
Rectangle
(0,0, size.Width, size.Height);
commonui\System\Drawing\Graphics.cs (1)
4346
return IsVisible(new
Rectangle
(x, y, width, height));
commonui\System\Drawing\Icon.cs (6)
493
Draw(graphics, new
Rectangle
(x, y, size.Width, size.Height));
971
System.Drawing.Imaging.BitmapData bmpdata = bitmap.LockBits(new
Rectangle
(0, 0, Size.Width, Size.Height),
1023
bmpData = tmpBitmap.LockBits(new
Rectangle
(0,0, tmpBitmap.Width, tmpBitmap.Height), ImageLockMode.ReadOnly, tmpBitmap.PixelFormat);
1028
targetData = bitmap.LockBits(new
Rectangle
(0, 0, bmpData.Width, bmpData.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
1074
graphics.DrawImage(tmpBitmap, new
Rectangle
(0, 0, size.Width, size.Height));
1081
Draw(graphics, new
Rectangle
(0, 0, size.Width, size.Height));
commonui\System\Drawing\Printing\PageSettings.cs (2)
449
pageBounds = new
Rectangle
(0, 0, size.Height, size.Width);
451
pageBounds = new
Rectangle
(0, 0, size.Width, size.Height);
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
122
Metafile metafile = new Metafile(dc.Hdc, new
Rectangle
(0,0, metafileSize.Width, metafileSize.Height), MetafileFrameUnit.GdiCompatible, EmfType.EmfPlusOnly);
commonui\System\Drawing\Printing\PrintController.cs (1)
264
Rectangle marginBounds = new
Rectangle
(pageSettings.Margins.Left,
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
82
return new
Rectangle
(
commonui\System\Drawing\Rectangle.cs (6)
84
return new
Rectangle
(left,
300
return new
Rectangle
((int)Math.Ceiling(value.X),
312
return new
Rectangle
((int)value.X,
324
return new
Rectangle
((int)Math.Round(value.X),
447
return new
Rectangle
(x1, y1, x2 - x1, y2 - y1);
478
return new
Rectangle
(x1, y1, x2 - x1, y2 - y1);
commonui\System\Drawing\RectangleConverter.cs (2)
88
return new
Rectangle
(values[0], values[1], values[2], values[3]);
172
return new
Rectangle
((int)x,
commonui\System\Drawing\Region.cs (2)
930
return IsVisible(new
Rectangle
(x, y, width, height), null);
952
return IsVisible(new
Rectangle
(x, y, width, height), g);
misc\GDI\NativeMethods.cs (1)
204
return new
Rectangle
(
misc\GDI\WindowsRegion.cs (2)
64
CreateRegion(new
Rectangle
(x,y,width, height));
191
return new
Rectangle
( -Int32.MaxValue, -Int32.MaxValue, Int32.MaxValue, Int32.MaxValue );
System.Web.DataVisualization (10)
Common\General\Chart.cs (2)
266
new
Rectangle
(0, 0, this.Width, this.Height),
280
metaGraphics.Clip = new Region(new
Rectangle
(0, 0, this.Width, this.Height));
Common\General\ChartGraphics.cs (5)
748
new
Rectangle
((int)rect.X + shadowSize, (int)rect.Y + shadowSize, (int)rect.Width, (int)rect.Height),
756
new
Rectangle
((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height),
3595
new
Rectangle
((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4270
new
Rectangle
((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4568
new
Rectangle
((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
Common\General\Legend.cs (3)
473
this._titlePosition = new
Rectangle
(
510
this._headerPosition = new
Rectangle
(
528
this._legendItemsAreaPosition = new
Rectangle
(
System.Windows.Forms (326)
misc\GDI\NativeMethods.cs (1)
204
return new
Rectangle
(
misc\GDI\WindowsGraphics2.cs (1)
167
Rectangle bounds = new
Rectangle
( pt.X, pt.Y, Int32.MaxValue, Int32.MaxValue );
misc\GDI\WindowsRegion.cs (2)
64
CreateRegion(new
Rectangle
(x,y,width, height));
191
return new
Rectangle
( -Int32.MaxValue, -Int32.MaxValue, Int32.MaxValue, Int32.MaxValue );
winforms\Managed\System\WinForms\AccessibleObject.cs (1)
115
return new
Rectangle
(left, top, width, height);
winforms\Managed\System\WinForms\AxHost.cs (5)
1445
FillInRect(clipRect, new
Rectangle
(0, 0, 32000, 32000));
1596
SetObjectRects(new
Rectangle
(x, y, width, height));
1601
SetObjectRects(new
Rectangle
(x, y, width, height));
3617
Bounds = new
Rectangle
(location.X, location.Y, ocxExtent.Width, ocxExtent.Height);
3621
Bounds = new
Rectangle
(location.X, location.Y, newSize.Width, newSize.Height);
winforms\Managed\System\WinForms\ButtonBase.cs (1)
567
return new
Rectangle
(-1, -1, 1, 1);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (3)
562
Rectangle bounds = new
Rectangle
(buttonBorderSize, buttonBorderSize, this.Control.Width - (2 * buttonBorderSize), this.Control.Height - (2 * buttonBorderSize));
1130
Rectangle textAdjusted = new
Rectangle
(layout.textBounds.X - 1, layout.textBounds.Y - 1,
1195
layout.checkBounds = new
Rectangle
(client.X, client.Y, checkSizeFull, checkSizeFull);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (5)
104
wg.FillRectangle(fieldBrush, new
Rectangle
(bounds.X + 2, bounds.Y + 2, 8, 8));
105
wg.FillRectangle(fieldBrush, new
Rectangle
(bounds.X + 4, bounds.Y + 1, 4, 10));
106
wg.FillRectangle(fieldBrush, new
Rectangle
(bounds.X + 1, bounds.Y + 4, 10, 4));
146
Rectangle vCross = new
Rectangle
(layout.checkBounds.X + GetScaledNumber(offset, scale), layout.checkBounds.Y + GetScaledNumber(offset - 1, scale), GetScaledNumber(2, scale), GetScaledNumber(4, scale));
148
Rectangle hCross = new
Rectangle
(layout.checkBounds.X + GetScaledNumber(offset - 1, scale), layout.checkBounds.Y + GetScaledNumber(offset, scale), GetScaledNumber(4, scale), GetScaledNumber(2, scale));
winforms\Managed\System\WinForms\CheckBox.cs (1)
398
return new
Rectangle
(-1, -1, 1, 1);
winforms\Managed\System\WinForms\CheckedListBox.cs (5)
694
Rectangle box = new
Rectangle
(bounds.X + scaledListItemStartPosition,
720
Rectangle textBounds = new
Rectangle
(
766
Rectangle stringBounds = new
Rectangle
(
848
Rectangle emptyRectangle = new
Rectangle
(
1674
return new
Rectangle
(pt.x, pt.y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\ComboBox.cs (18)
1839
Rectangle ClientRect = new
Rectangle
(r.left, r.top, r.right - r.left, r.bottom - r.top);
1984
Rectangle Rect = new
Rectangle
(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
3725
Rectangle ClientRect = new
Rectangle
(r.left, r.top, r.right - r.left, r.bottom - r.top);
4622
return new
Rectangle
(left, top, width, height);
5589
return new
Rectangle
(left, top, width, height);
5935
innerBorder = new
Rectangle
(outerBorder.X + 1, outerBorder.Y + 1, outerBorder.Width - dropDownButtonWidth - 2, outerBorder.Height - 2);
5936
innerInnerBorder = new
Rectangle
(innerBorder.X + 1, innerBorder.Y + 1, innerBorder.Width - 2, innerBorder.Height - 2);
5937
dropDownRect = new
Rectangle
(innerBorder.Right + 1, innerBorder.Y, dropDownButtonWidth, innerBorder.Height+1);
5996
g.DrawRectangle(outerBorderPen, new
Rectangle
(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height));
5999
g.DrawRectangle(outerBorderPen, new
Rectangle
(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
6006
g.DrawRectangle(outerBorderPen, new
Rectangle
(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height));
6009
g.DrawRectangle(outerBorderPen, new
Rectangle
(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
6040
g.DrawRectangle(innerPen, new
Rectangle
(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height));
6043
g.DrawRectangle(innerPen, new
Rectangle
(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height));
6103
Rectangle topOwnerDrawArea = new
Rectangle
(0,0,comboBox.Width, innerBorder.Top);
6104
Rectangle bottomOwnerDrawArea = new
Rectangle
(0,innerBorder.Bottom,comboBox.Width, comboBox.Height-innerBorder.Bottom);
6105
Rectangle leftOwnerDrawArea = new
Rectangle
(0,0,innerBorder.Left, comboBox.Height);
6106
Rectangle rightOwnerDrawArea = new
Rectangle
(innerBorder.Right,0,comboBox.Width - innerBorder.Right,comboBox.Height);
winforms\Managed\System\WinForms\ContainerControl.cs (1)
719
return new
Rectangle
(topLeftPoint.x, topLeftPoint.y, clientRectangle.right, clientRectangle.bottom);
winforms\Managed\System\WinForms\Control.cs (12)
1372
return new
Rectangle
(x, y, width, height);
1597
return new
Rectangle
(0, 0, clientWidth, clientHeight);
2285
return new
Rectangle
(0, 0, clientWidth, clientHeight);
6458
Rectangle newBounds = new
Rectangle
(suggestedX, suggestedY, 0,0);
6467
return new
Rectangle
(suggestedX, suggestedY, proposedWidth, proposedHeight);
6636
return new
Rectangle
(sx, sy, sw, sh);
9406
PaintBackground(pevent, new
Rectangle
(rect.left, rect.top, rect.right, rect.bottom));
9803
Rectangle shift = new
Rectangle
(-this.Left,-this.Top, parent.Width, parent.Height);
9806
Rectangle newClipRect = new
Rectangle
(rectangle.Left + this.Left, rectangle.Top + this.Top, rectangle.Width, rectangle.Height);
13674
clip = new
Rectangle
(ps.rcPaint_left, ps.rcPaint_top,
18409
Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Old Intersect: " + new
Rectangle
(rcIntersect.left, rcIntersect.top, rcIntersect.right-rcIntersect.left, rcIntersect.bottom-rcIntersect.top));
18414
Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "New Intersect: " + new
Rectangle
(rcIntersect.left, rcIntersect.top, rcIntersect.right-rcIntersect.left, rcIntersect.bottom-rcIntersect.top));
winforms\Managed\System\WinForms\ControlPaint.cs (9)
267
BitmapData data = bitmap.LockBits(new
Rectangle
(0,0, width, height),
1157
DrawFlatCheckBox(graphics, new
Rectangle
(x, y, width, height), state);
1262
Rectangle offsetRectangle = new
Rectangle
(rectangle.X + 1, rectangle.Y + 1,
1383
graphics.DrawImage(bitmap, new
Rectangle
(x, y, width, height), 0, 0, width, height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero);
1436
Rectangle fillRect = new
Rectangle
(rectangle.X + 1, rectangle.Y + 1, rectangle.Width - 1, rectangle.Height - 1);
1546
DrawImageDisabled(graphics, image, new
Rectangle
(x, y, image.Width, image.Height), background, false);
1599
new
Rectangle
(0, 0, imageSize.Width, imageSize.Height),
2471
bound = new
Rectangle
(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1);
2496
bound = new
Rectangle
(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1);
winforms\Managed\System\WinForms\DataGrid.cs (13)
4478
right = new
Rectangle
(oldClientRectangle.X + oldClientRectangle.Width - borderWidth,
4482
bottom = new
Rectangle
(oldClientRectangle.X,
4490
right = new
Rectangle
(newClientRectangle.X + newClientRectangle.Width - borderWidth,
4498
bottom = new
Rectangle
(newClientRectangle.X,
4703
Rectangle r = new
Rectangle
(inside.X, e.Y, inside.Width, 3);
4711
Rectangle r = new
Rectangle
(e.X, inside.Y, 3, inside.Height);
5773
region.Exclude(new
Rectangle
(rowExclude.X,
6323
Rectangle rowRect = new
Rectangle
(inside.X,
6669
Rectangle inner = new
Rectangle
(rowRect.X + r.X, rowRect.Y + r.Y, r.Width, r.Height);
6808
layout.ResizeBoxRect = new
Rectangle
(alignToRight ? data.X : data.Right,
6826
horizScrollBar.Bounds = new
Rectangle
(alignToRight ? layout.Inside.X + layout.ResizeBoxRect.Width : layout.Inside.X,
6844
vertScrollBar.Bounds = new
Rectangle
(alignToRight ? layout.Data.X : layout.Data.Right,
7244
Rectangle triBounds = new
Rectangle
(alignRight ? textBounds.X - textBounds.Height : textBounds.Right,
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (2)
156
return new
Rectangle
(bounds.X +((bounds.Width - idealCheckSize) /2),
161
return new
Rectangle
(Math.Max(0,bounds.X +((bounds.Width - idealCheckSize) /2)),
winforms\Managed\System\WinForms\DataGridCaption.cs (4)
434
return new
Rectangle
( bounds.Right - xOffset * 4 - downButtonWidth - backButtonSize.Width,
456
return new
Rectangle
( bounds.Right - xOffset * 2 - downButtonWidth,
479
textRect = new
Rectangle
(
575
border = new
Rectangle
(textBounds.X, textBounds.Y + textPadding,
winforms\Managed\System\WinForms\DataGridParentRows.cs (6)
327
Rectangle r = new
Rectangle
(rect.X, rect.Y, rect.Width + borderWidth, rect.Height + borderWidth);
563
border = new
Rectangle
(bounds.X, bounds.Y + borderWidth,
664
layout.leftArrow = new
Rectangle
(bounds.X, bounds.Y, 15, bounds.Height);
665
layout.data = new
Rectangle
(layout.leftArrow.Right, bounds.Y, bounds.Width - 30, bounds.Height);
666
layout.rightArrow = new
Rectangle
(layout.data.Right, bounds.Y, 15, bounds.Height);
776
Rectangle bmpRect = new
Rectangle
(bmpX, bmpY, b.Width, b.Height);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (5)
212
Rectangle outline = new
Rectangle
(xOrigin + 2,
542
Rectangle relationBounds = new
Rectangle
(trueRowBounds.X,
611
Rectangle rowHeaderBounds = new
Rectangle
(rowHeaderBoundsX,
623
Rectangle expandoBox = new
Rectangle
(expandoBoxX,
709
Rectangle textBounds = new
Rectangle
(bounds.X, bounds.Y + System.Windows.Forms.DataGridTableStyle.relationshipSpacing,
winforms\Managed\System\WinForms\DataGridRow.cs (3)
246
cellBounds = new
Rectangle
(cx,
444
Rectangle bottomBorder = new
Rectangle
(alignToRight ? bounds.Right - dataWidth : bounds.X,
561
Rectangle bmpRect = new
Rectangle
(alignToRight ? visualBounds.Right - xOffset - bmpSize.Width : visualBounds.X + xOffset,
winforms\Managed\System\WinForms\DataGridView.cs (1)
5163
Invalidate(new
Rectangle
(this.layout.Inside.X, this.layout.Inside.Y, this.RowHeadersWidth, this.ColumnHeadersHeight));
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
37
private static Rectangle rectThemeMargins = new
Rectangle
(-1, -1, 0, 0);
446
Rectangle rectCell = new
Rectangle
(0, 0, DATAGRIDVIEWBUTTONCELL_themeMargin, DATAGRIDVIEWBUTTONCELL_themeMargin);
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
1252
Rectangle bmpRect = new
Rectangle
(this.DataGridView.RightToLeftInternal ?
4356
rectPadding = new
Rectangle
(bounds.X, bounds.Y, cellStyle.Padding.Right, bounds.Height);
4365
rectPadding = new
Rectangle
(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.Height);
4606
return new
Rectangle
(xEditingControl, yEditingControl, wEditingControl, hEditingControl);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (6)
1334
new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height),
1338
resultBounds = new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height);
1356
resultBounds = new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height);
1363
Rectangle checkBounds = new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height);
1419
Rectangle fullSize = new
Rectangle
(checkBoxX-1, checkBoxY-1, checkBoxSize.Width+3, checkBoxSize.Height+3);
1463
Rectangle checkBounds = new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width - 1, checkBoxSize.Height - 1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
865
DataGridViewColumnHeaderCellRenderer.DrawHeader(gFlip, new
Rectangle
(0, 0, backgroundBounds.Width, backgroundBounds.Height), state);
867
g.DrawImage(bmFlipXPThemes, backgroundBounds, new
Rectangle
(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height), GraphicsUnit.Pixel);
1252
Rectangle cornerClip = new
Rectangle
(bounds.Left, bounds.Bottom-2, 2, 2);
1255
cornerClip = new
Rectangle
(bounds.Right-2, bounds.Bottom-2, 2, 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2217
g.DrawRectangle(SystemPens.ControlLightLight, new
Rectangle
(valBounds.X, valBounds.Y, valBounds.Width-1, valBounds.Height-1));
2247
dropRect = new
Rectangle
(this.DataGridView.RightToLeftInternal ? valBounds.Left : valBounds.Right - dropWidth,
2254
dropRect = new
Rectangle
(this.DataGridView.RightToLeftInternal ? valBounds.Left + 1 : valBounds.Right - dropWidth - 1,
2262
dropRect = new
Rectangle
(this.DataGridView.RightToLeftInternal ? valBounds.Left + 2 : valBounds.Right - dropWidth - 2,
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (4)
29
private static Rectangle rectThemeMargins = new
Rectangle
(-1, -1, 0, 0);
485
Rectangle rectCell = new
Rectangle
(0, 0, DATAGRIDVIEWHEADERCELL_themeMargin, DATAGRIDVIEWHEADERCELL_themeMargin);
495
rectThemeMargins = new
Rectangle
(0, 0, 2, 3);
507
rectThemeMargins = new
Rectangle
(2, 1, 0, 2);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
643
imgBounds = new
Rectangle
(bounds.X, bounds.Y, imgWidth, imgHeight);
650
imgBounds = new
Rectangle
(bounds.X, bounds.Y, Decimal.ToInt32((decimal)imgWidth * bounds.Height / imgHeight), bounds.Height);
655
imgBounds = new
Rectangle
(bounds.X, bounds.Y, bounds.Width, Decimal.ToInt32((decimal)imgHeight * bounds.Width / imgWidth));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (22)
3022
r = new
Rectangle
(mouseX + this.mouseBarOffset - this.Columns[this.trackColumn].Thickness + 1,
3031
r = new
Rectangle
(mouseX + this.mouseBarOffset - 1, inside.Y, this.Columns[this.trackColumn].Thickness, inside.Height);
3041
Rectangle r = new
Rectangle
(mouseX + this.mouseBarOffset - 1, inside.Y, 3, inside.Height);
3057
Rectangle r = new
Rectangle
(inside.X, mouseY + this.mouseBarOffset - 1, inside.Width, 3);
5688
Rectangle rectInsertionBar = new
Rectangle
(0, this.layout.ColumnHeaders.Top, DATAGRIDVIEW_insertionBarWidth, this.layout.ColumnHeaders.Height);
8375
columnRect = new
Rectangle
(cx - displayWidth, data.Y, displayWidth, data.Height);
8379
columnRect = new
Rectangle
(cx, data.Y, displayWidth, data.Height);
9181
Rectangle rowRect = new
Rectangle
(data.X,
10193
Invalidate(new
Rectangle
(data.X, top, data.Width, bottom - top));
10478
this.layout.ResizeBoxRect = new
Rectangle
(
10495
this.horizScrollBar.Bounds = new
Rectangle
(
10536
this.vertScrollBar.Bounds = new
Rectangle
(
17880
right = new
Rectangle
(oldClientRectangle.X + oldClientRectangle.Width - borderWidth,
17884
bottom = new
Rectangle
(oldClientRectangle.X,
17902
right = new
Rectangle
(newClientRectangle.X + newClientRectangle.Width - borderWidth,
17911
bottom = new
Rectangle
(newClientRectangle.X,
17921
right = new
Rectangle
(oldGridFocusRectangle.X + oldGridFocusRectangle.Width - 1,
17927
bottom = new
Rectangle
(oldGridFocusRectangle.X,
19839
Rectangle edge = new
Rectangle
(0, 0, bounds.Width, borderWidth);
19869
g.DrawRectangle(pen, new
Rectangle
(0, 0, bounds.Width - 1, bounds.Height - 1));
19879
g.DrawRectangle(pen, new
Rectangle
(0, 0, bounds.Width - 1, bounds.Height - 1));
20367
Rectangle cellBounds = new
Rectangle
(leftEdge, GetRowYFromIndex(this.ptCurrentCell.Y),
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
836
DataGridViewRowHeaderCellRenderer.DrawHeader(gFlip, new
Rectangle
(0, 0, backgroundBounds.Height, backgroundBounds.Width), state);
841
new
Rectangle
(0, 0, backgroundBounds.Width, backgroundBounds.Height),
1132
Rectangle bmpRect = new
Rectangle
(this.DataGridView.RightToLeftInternal ?
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
268
Rectangle pageHostBounds = new
Rectangle
(2 * BUTTON_PAD + selectorWidth, 2 * BUTTON_PAD + STRIP_HEIGHT,
271
grayStrip.Bounds = new
Rectangle
(pageHostBounds.X, BUTTON_PAD,
275
Rectangle pageBounds = new
Rectangle
(0, 0, pageHostBounds.Width, pageHostBounds.Height);
289
selector.Bounds = new
Rectangle
(BUTTON_PAD, BUTTON_PAD,
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
173
resultBounds = new
Rectangle
(originalBounds.X, originalBounds.Y, textSize.Width, textSize.Height);
winforms\Managed\System\WinForms\ErrorProvider.cs (5)
1187
Region windowRegion = new Region(new
Rectangle
(0, 0, 0, 0));
1553
return new
Rectangle
(x, y, size.Width, size.Height);
1693
region = new Region(new
Rectangle
(0,0,0,0));
1717
region.Union(new
Rectangle
(x, y, 1, 1));
1721
region.Intersect(new
Rectangle
(0, 0, size.Width, size.Height));
winforms\Managed\System\WinForms\Form.cs (7)
201
private Rectangle restoredWindowBounds = new
Rectangle
(-1, -1, -1, -1);
213
private Rectangle restoreBounds = new
Rectangle
(-1, -1, -1, -1);
4820
form.SetBounds(new
Rectangle
(this.Left, this.Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None);
5067
sizeGripRenderer.DrawBackground(e.Graphics, new
Rectangle
(sz.Width - SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize));
5689
restoredWindowBounds = new
Rectangle
(-1, -1, -1, -1);
5932
if (adjustedBounds != new
Rectangle
(x,y,width,height)) {
7854
Rectangle r = new
Rectangle
(owner.Left, owner.Top, s.Width, SystemInformation.CaptionHeight);
winforms\Managed\System\WinForms\GroupBox.cs (3)
220
return new
Rectangle
(padding.Left, fontHeight + padding.Top, Math.Max(size.Width - padding.Horizontal, 0), Math.Max(size.Height - fontHeight - padding.Vertical, 0));
537
GroupBoxRenderer.DrawGroupBox(e.Graphics, new
Rectangle
(0, 0, Width, Height), Text, Font, textcolor, textFlags, gbState);
540
GroupBoxRenderer.DrawGroupBox(e.Graphics, new
Rectangle
(0, 0, Width, Height), Text, Font, textFlags, gbState);
winforms\Managed\System\WinForms\HtmlElement.cs (3)
108
return new
Rectangle
(htmlElement2.ClientLeft(), htmlElement2.ClientTop(),
305
return new
Rectangle
(this.NativeHtmlElement.GetOffsetLeft(), this.NativeHtmlElement.GetOffsetTop(),
401
return new
Rectangle
(htmlElement2.GetScrollLeft(), htmlElement2.GetScrollTop(),
winforms\Managed\System\WinForms\ImageList.cs (2)
720
bmpData = tmpBitmap.LockBits(new
Rectangle
(imageInfo.rcImage_left,imageInfo.rcImage_top, imageInfo.rcImage_right-imageInfo.rcImage_left, imageInfo.rcImage_bottom-imageInfo.rcImage_top), ImageLockMode.ReadOnly, tmpBitmap.PixelFormat);
726
targetData = result.LockBits(new
Rectangle
(0, 0, imageSize.Width, imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
winforms\Managed\System\WinForms\Label.cs (2)
1110
return new
Rectangle
(xLoc, yLoc, pointImageSize.Width, pointImageSize.Height);
1739
Rectangle rectInScreen = this.RectangleToScreen(new
Rectangle
(0, 0, Width, Height));
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (1)
306
Rectangle bounds = new
Rectangle
(x, y, width, height);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (6)
226
return new
Rectangle
(left, top, right - left, bottom - top);
278
Rectangle newElementBounds = new
Rectangle
(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height);
289
Rectangle newElementBounds = new
Rectangle
(remainingBounds.X, remainingBounds.Bottom - elementSize.Height, elementSize.Width, elementSize.Height);
300
Rectangle newElementBounds = new
Rectangle
(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height);
311
Rectangle newElementBounds = new
Rectangle
(remainingBounds.Right - elementSize.Width, remainingBounds.Y, elementSize.Width, elementSize.Height);
326
Rectangle newElementBounds = new
Rectangle
(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (2)
119
Rectangle measureBounds = new
Rectangle
(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height);
129
Rectangle rowBounds = new
Rectangle
(displayRect.X,
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
26
public static readonly Rectangle MaxRectangle = new
Rectangle
(0, 0, Int32.MaxValue, Int32.MaxValue);
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
1215
Rectangle cellBounds = new
Rectangle
((int)(startX + cellBorderWidth / 2.0f), (int)(top + cellBorderWidth / 2.0f), width - cellBorderWidth, height - cellBorderWidth);
2084
Rectangle cellsOccupied1 = new
Rectangle
(layoutInfo1.ColumnStart, layoutInfo1.RowStart, layoutInfo1.ColumnSpan, layoutInfo1.RowSpan);
2088
Rectangle cellsOccupied2 = new
Rectangle
(layoutInfo2.ColumnStart, layoutInfo2.RowStart, layoutInfo2.ColumnSpan, layoutInfo2.RowSpan);
winforms\Managed\System\WinForms\LinkLabel.cs (2)
538
return new
Rectangle
(xLoc, yLoc, width, height);
701
Rectangle visualRectangle = new
Rectangle
(clientRectWithPadding.X + iLeftMargin,
winforms\Managed\System\WinForms\ListBox.cs (1)
2280
Rectangle rect = new
Rectangle
(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\ListView.cs (1)
6231
Rectangle rect = new
Rectangle
(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
3181
Rectangle rect = new
Rectangle
(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
621
pageRenderArea[imageIndex - StartPage] = new
Rectangle
(x, y, imagePixels.X, imagePixels.Y);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1734
Rectangle rect = new
Rectangle
(0, 0 , item.Bounds.Width - 1, item.Bounds.Height - 1);
winforms\Managed\System\WinForms\PropertyGrid.cs (7)
2995
Rectangle toolStripBounds = new
Rectangle
(0,1,toolStripWidth, toolStripHeight);
3208
Invalidate(new
Rectangle
(0, me.Y - cyDivider, Size.Width, me.Y + cyDivider));
3212
gridView.Invalidate(new
Rectangle
(0, gridView.Size.Height - cyDivider, Size.Width, cyDivider));
3297
pevent.Graphics.FillRectangle(background, new
Rectangle
(0,0,width, psheetLoc.Y));
3303
pevent.Graphics.FillRectangle(background, new
Rectangle
(0, yLast, width, hotcommands.Location.Y - yLast));
3309
pevent.Graphics.FillRectangle(background, new
Rectangle
(0, yLast, width, doccomment.Location.Y - yLast));
3314
pevent.Graphics.FillRectangle(background, new
Rectangle
(0, yLast, width, Size.Height - yLast));
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
216
Rectangle focusRect = new
Rectangle
(indent, rect.Y, labelWidth+3, rect.Height-1);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
119
Rectangle rectInvalidate = new
Rectangle
(rect.Width-1,0,newRect.Width-rect.Width+1,rect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
97
Rectangle dropDownButtonRect = new
Rectangle
(0, 0, Width, Height);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
835
outlineRect = new
Rectangle
(left, top, outlineSize, outlineSize);
1919
Rectangle textRect = new
Rectangle
(stringX, rect.Y + 1, maxSpace, rect.Height - 1);
2140
Rectangle rectPaint = new
Rectangle
(rect.X + 1, rect.Y + 1, gridHost.GetValuePaintWidth(), gridHost.GetGridEntryHeight() - 2);
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
68
return new
Rectangle
(4, 4, sz.Width - 8, sz.Height - 8);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
623
uiItemRects[i] = new
Rectangle
(rect.Right - ((scaledImageSizeX + 1) * (i + 1)), (rect.Height - scaledImageSizeY) / 2, scaledImageSizeX, scaledImageSizeY);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (14)
784
return new
Rectangle
(0, 0, 0, 0);
793
return new
Rectangle
(pt.x, pt.y, rect.Width, rect.Height);
2134
Rectangle rect = new
Rectangle
(0,0,0,0);
2367
Invalidate(new
Rectangle
(left, 0, Size.Width - left, Size.Height));
2448
ControlPaint.DrawFocusRectangle(g, new
Rectangle
(offset_2Units, offset_2Units, Size.Width - doubleOffset, Size.Height - doubleOffset));
2607
Rectangle clearRect = new
Rectangle
(1, 1, Size.Width - 2, Size.Height - 2);
3558
Rectangle clearRect = new
Rectangle
(1, yPos, Size.Width - 2, Size.Height - yPos - 1);
3783
Rectangle rectInvalidate = new
Rectangle
(lastClientRect.Width-1,0,newRect.Width-lastClientRect.Width+1,lastClientRect.Height);
3788
Rectangle rectInvalidate = new
Rectangle
(0,lastClientRect.Height-1,lastClientRect.Width,newRect.Height-lastClientRect.Height+1);
4428
Rectangle rectTarget = new
Rectangle
(rect.X+rect.Width-sizeBtn.Width,
5762
Rectangle bGripRect = new
Rectangle
(0, Height - ResizeGripSize, ResizeGripSize, ResizeGripSize);
5763
Rectangle tGripRect = new
Rectangle
(0, 0, ResizeGripSize, ResizeGripSize);
5915
Rectangle lRect = new
Rectangle
(0, resizeUp ? 0 : Height - ResizeGripSize, ResizeGripSize, ResizeGripSize);
6228
return new
Rectangle
(left, top, width, height);
winforms\Managed\System\WinForms\RadioButton.cs (1)
337
return new
Rectangle
(-1, -1, 1, 1);
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
644
displayRect = new
Rectangle
(displayRect.X, displayRect.Y, this.HorizontalScroll.Maximum, this.displayRect.Height);
647
displayRect = new
Rectangle
(displayRect.X, displayRect.Y, this.displayRect.Width, this.VerticalScroll.Maximum);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
2383
return new
Rectangle
(containerRectangle.X + splitterRectangle.X, containerRectangle.Y + splitterRectangle.Y, splitterRectangle.Width, splitterRectangle.Height);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1008
t.rect = new
Rectangle
(panel.Right-panel.Width + border, 0, panel.Width - border, Height);
winforms\Managed\System\WinForms\StatusStrip.cs (2)
231
return new
Rectangle
(0, statusStripSize.Height - gripHeight, gripWidth, gripHeight);
234
return new
Rectangle
(statusStripSize.Width - gripWidth, statusStripSize.Height - gripHeight, gripWidth, gripHeight);
winforms\Managed\System\WinForms\SystemInformation.cs (2)
1034
return new
Rectangle
(UnsafeNativeMethods.GetSystemMetrics(NativeMethods.SM_XVIRTUALSCREEN),
1041
return new
Rectangle
(0, 0, size.Width, size.Height);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (3)
437
Rectangle outsideCellBounds = new
Rectangle
(startx, starty, ((TableLayout.Strip)colStrips[i]).MinSize, ((TableLayout.Strip)rowStrips[j]).MinSize);
439
Rectangle insideCellBounds = new
Rectangle
(outsideCellBounds.X + (cellBorderWidth + 1) / 2, outsideCellBounds.Y + (cellBorderWidth + 1)/ 2, outsideCellBounds.Width - (cellBorderWidth + 1) / 2, outsideCellBounds.Height - (cellBorderWidth + 1) / 2);
464
Rectangle tableBounds = new
Rectangle
(cellBorderWidth/2 + displayRect.X, cellBorderWidth/2 + displayRect.Y, displayRect.Width - cellBorderWidth, displayRect.Height - cellBorderWidth);
winforms\Managed\System\WinForms\TabPage.cs (1)
718
Rectangle rectWithBorder = new
Rectangle
(inflateRect.X - 4, inflateRect.Y - 2, inflateRect.Width + 8, inflateRect.Height + 6);
winforms\Managed\System\WinForms\TextBox.cs (1)
849
Rectangle rect = new
Rectangle
(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\ToolStrip.cs (4)
5482
insertionRect = new
Rectangle
(owner.Margin.Left, item.Bounds.Top, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5485
insertionRect = new
Rectangle
(owner.Margin.Left, item.Bounds.Bottom, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5488
insertionRect = new
Rectangle
(item.Bounds.Right, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height- (owner.Margin.Vertical)-1);
5491
insertionRect = new
Rectangle
(item.Bounds.Left, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height - (owner.Margin.Vertical) -1);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1758
Rectangle bounds = new
Rectangle
(x, y, width, height);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (3)
285
dropDownArrowRect = new
Rectangle
(scaledDropDownArrowPadding.Left,0, dropDownArrowSize.Width, ownerItem.Bounds.Height);
289
dropDownArrowRect = new
Rectangle
(options.client.Right,0, dropDownArrowSize.Width, ownerItem.Bounds.Height);
300
dropDownArrowRect = new
Rectangle
(0,options.client.Bottom + scaledDropDownArrowPadding.Top, ownerItem.Bounds.Width-1, dropDownArrowSize.Height);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
417
checkRectangle = LayoutUtils.Align(maxCheckSize, new
Rectangle
(nextPoint.X, nextPoint.Y, maxCheckSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
422
imageRectangle = LayoutUtils.Align(maxImageSize, new
Rectangle
(nextPoint.X, nextPoint.Y, maxImageSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
433
checkRectangle = LayoutUtils.Align(maxCheckSize, new
Rectangle
(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth, maxItemSize.Height), ContentAlignment.MiddleCenter);
452
checkRectangle = LayoutUtils.Align(LayoutUtils.UnionSizes(maxCheckSize,maxImageSize), new
Rectangle
(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth-1, maxItemSize.Height), ContentAlignment.MiddleCenter);
469
imageMarginBounds = new
Rectangle
(0,0,checkAndImageMarginWidth, this.Height);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (7)
69
new
Rectangle
(startX, startY, 2, 2) :
70
new
Rectangle
(startY, startX, 2, 2);
95
e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new
Rectangle
(0, 0, e.Item.Width - 1, e.Item.Height - 1));
279
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, 1, 1, 1));
283
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, 1, 1, 1));
288
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, bounds.Height - 2, 1, 1));
295
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, bounds.Height - 2, 1, 1));
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3639
SetBounds(new
Rectangle
(x,y,width,height));
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (4)
65
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, 1, 1, 1));
69
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, 1, 1, 1));
74
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, bounds.Height - 2, 1, 1));
81
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, bounds.Height - 2, 1, 1));
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (18)
158
overflowArrowRect = new
Rectangle
(0, item.Height - overflowArrowOffsetY, overflowArrowWidth, overflowArrowHeight);
161
overflowArrowRect = new
Rectangle
(item.Width - overflowButtonWidth, item.Height - overflowArrowOffsetY, overflowArrowWidth, overflowArrowHeight);
291
ControlPaint.DrawBorder3D(e.Graphics, new
Rectangle
(0,0,item.Width, item.Height), item.BorderStyle, (Border3DSide)item.BorderSides);
408
edging = new
Rectangle
(bounds.Width - 1, 3, 1, bounds.Height - 3);
411
edging = new
Rectangle
(3, bounds.Height -1, bounds.Width -3, bounds.Height - 1);
453
new
Rectangle
(startX, startY, 2, 2) :
454
new
Rectangle
(startY, startX, 2,2);
750
Rectangle bottomLeftParentVerticalPixels = new
Rectangle
(bottomLeft.X, bottomLeft.Y - 1, 1, 2);
753
Rectangle bottomRightHorizontalPixels = new
Rectangle
(bottomRight.X - 1, bottomRight.Y, 2, 1);
754
Rectangle bottomRightVerticalPixels = new
Rectangle
(bottomRight.X, bottomRight.Y - 1, 1, 2);
760
topRightHorizontalPixels = new
Rectangle
(topRight.X - 1, topRight.Y, 1, 1);
761
topRightVerticalPixels = new
Rectangle
(topRight.X, topRight.Y, 1, 2);
764
topRightHorizontalPixels = new
Rectangle
(topRight.X - 2, topRight.Y, 2, 1);
765
topRightVerticalPixels = new
Rectangle
(topRight.X, topRight.Y, 1, 3);
909
Rectangle bounds = DpiHelper.IsScalingRequired ? new
Rectangle
(e.ImageRectangle.Left-2, (e.Item.Height - e.ImageRectangle.Height )/2- 1, e.ImageRectangle.Width+4, e.ImageRectangle.Height +2) :
910
new
Rectangle
(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2);
1140
Rectangle fillRect = new
Rectangle
(overflowBoundsFill.X - 1, 0, 1, 1);
1211
Rectangle otherBottom = new
Rectangle
(bottomLeft.X, bottomLeft.Y - 2, 1, 1);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (7)
65
private static Rectangle[] baseSizeGripRectangles = new Rectangle[] { new
Rectangle
(8,0,2,2),
66
new
Rectangle
(8,4,2,2),
67
new
Rectangle
(8,8,2,2),
68
new
Rectangle
(4,4,2,2),
69
new
Rectangle
(4,8,2,2),
70
new
Rectangle
(0,8,2,2) };
1083
new
Rectangle
(0, 0, size.Width, size.Height),
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
129
return new
Rectangle
(itemBounds.X+1, 0, itemBounds.Width -2, 2);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (2)
386
splitterBounds = new
Rectangle
(splitButtonButtonBounds.Right, splitButtonButtonBounds.Top, splitterWidth, splitButtonButtonBounds.Height);
391
splitterBounds = new
Rectangle
(dropDownButtonBounds.Right, dropDownButtonBounds.Top, splitterWidth, dropDownButtonBounds.Height);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (8)
332
alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new
Rectangle
(x,y,itemSize.Width, itemSize.Height)
333
: Rectangle.Union(alignedRightItems, new
Rectangle
(x,y,itemSize.Width, itemSize.Height));
345
alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new
Rectangle
(x,y,itemSize.Width, itemSize.Height)
346
: Rectangle.Union(alignedLeftItems, new
Rectangle
(x,y,itemSize.Width, itemSize.Height));
462
alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new
Rectangle
(x,y,itemSize.Width, itemSize.Height)
463
: Rectangle.Union(alignedRightItems, new
Rectangle
(x,y,itemSize.Width, itemSize.Height));
470
alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new
Rectangle
(x,y,itemSize.Width, itemSize.Height)
471
: Rectangle.Union(alignedLeftItems, new
Rectangle
(x,y,itemSize.Width, itemSize.Height));
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (2)
446
ControlPaint.DrawBorder3D(e.Graphics, new
Rectangle
(0,0,item.Width-1, item.Height-1), item.BorderStyle, (Border3DSide)item.BorderSides);
688
vsRenderer.DrawBackground(e.Graphics,new
Rectangle
(0,0,e.ToolStrip.Width-1, e.ToolStrip.Height-1));
winforms\Managed\System\WinForms\ToolTip.cs (5)
1802
possibleLocations[TOP_LOCATION_INDEX] = new
Rectangle
(centeredX, toolRectangle.Top - height, width, height);
1803
possibleLocations[RIGHT_LOCATION_INDEX] = new
Rectangle
(toolRectangle.Right, centeredY, width, height);
1804
possibleLocations[BOTTOM_LOCATION_INDEX] = new
Rectangle
(centeredX, toolRectangle.Bottom, width, height);
1805
possibleLocations[LEFT_LOCATION_INDEX] = new
Rectangle
(toolRectangle.Left - width, centeredY, width, height);
2602
Rectangle bounds = new
Rectangle
(ps.rcPaint_left,ps.rcPaint_top,
winforms\Managed\System\WinForms\TrackBarRenderer.cs (4)
165
visualStyleRenderer.DrawEdge(g, new
Rectangle
(bounds.X, bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None);
174
visualStyleRenderer.DrawEdge(g, new
Rectangle
((int)Math.Round(x), bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None);
196
visualStyleRenderer.DrawEdge(g, new
Rectangle
(bounds.X, bounds.Y, bounds.Width, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
205
visualStyleRenderer.DrawEdge(g, new
Rectangle
(bounds.X, (int)Math.Round(y), bounds.Width, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
winforms\Managed\System\WinForms\TreeView.cs (1)
3137
Rectangle rect = new
Rectangle
(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\UpDownBase.cs (9)
811
Rectangle clipLeft = new
Rectangle
(bounds.Left, bounds.Top, border, bounds.Height);
812
Rectangle clipTop = new
Rectangle
(bounds.Left, bounds.Top, bounds.Width, border);
813
Rectangle clipRight = new
Rectangle
(bounds.Right - border, bounds.Top, border, bounds.Height);
814
Rectangle clipBottom = new
Rectangle
(bounds.Left, bounds.Bottom - border, bounds.Width, border);
1117
upDownButtonsBounds = new
Rectangle
(/*x*/clientArea.Right - defaultButtonsWidth+borderFixup,
1706
vsr.DrawBackground(e.Graphics, new
Rectangle
(0, 0, parent.defaultButtonsWidth, half_height), HandleInternal);
1718
vsr.DrawBackground(e.Graphics, new
Rectangle
(0, half_height, parent.defaultButtonsWidth, half_height), HandleInternal);
1722
new
Rectangle
(0, 0, parent.defaultButtonsWidth, half_height),
1727
new
Rectangle
(0, half_height, parent.defaultButtonsWidth, half_height),
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
258
this.AXInPlaceObject.SetObjectRects(new NativeMethods.COMRECT(new
Rectangle
(0, 0, width, height)), WebBrowserHelper.GetClipRect());
852
Bounds = new
Rectangle
(location.X, location.Y, extent.Width, extent.Height);
winforms\Managed\System\WinForms\WebBrowserHelper.cs (1)
166
return new NativeMethods.COMRECT(new
Rectangle
(0, 0, 32000, 32000));
System.Windows.Forms.DataVisualization (15)
Common\General\Chart.cs (2)
266
new
Rectangle
(0, 0, this.Width, this.Height),
280
metaGraphics.Clip = new Region(new
Rectangle
(0, 0, this.Width, this.Height));
Common\General\ChartGraphics.cs (5)
748
new
Rectangle
((int)rect.X + shadowSize, (int)rect.Y + shadowSize, (int)rect.Width, (int)rect.Height),
756
new
Rectangle
((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height),
3595
new
Rectangle
((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4270
new
Rectangle
((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4568
new
Rectangle
((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
Common\General\Legend.cs (3)
473
this._titlePosition = new
Rectangle
(
510
this._headerPosition = new
Rectangle
(
528
this._legendItemsAreaPosition = new
Rectangle
(
WinForm\ChartWinControl.cs (5)
2147
ControlPaint.DrawFocusRectangle(g, new
Rectangle
(1, 1, Size.Width - 2, Size.Height - 2));
2164
Rectangle topBorder = new
Rectangle
(1, 1, Size.Width - 2, 1);
2167
Rectangle rightBorder = new
Rectangle
(Size.Width - 2, 1, 1, Size.Height - 2);
2170
Rectangle bottomBorder = new
Rectangle
(1, Size.Height - 2, Size.Width - 2, 1);
2173
Rectangle leftBorder = new
Rectangle
(1, 1, 1, Size.Height - 2);
System.Workflow.Activities (7)
Designers\StateDesigner.cs (1)
404
return new
Rectangle
(-1, -1, 1, 1); // Create a rectangle outside the window to hide the icon
Designers\StateDesigner.Layouts.cs (1)
808
Rectangle separatorRectangle = new
Rectangle
(
Designers\StateDesignerConnector.cs (1)
229
Rectangle bounds = new
Rectangle
(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height);
Designers\StateMachineDesignerPaint.cs (4)
74
return new
Rectangle
(left, top, width, height);
404
lineCapPath.AddEllipse(new
Rectangle
(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height));
409
lineCapPath.AddRectangle(new
Rectangle
(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height));
415
lineCapPath.AddPath(ActivityDesignerPaint.GetRoundedRectanglePath(new
Rectangle
(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height), arcRadius), true);
System.Workflow.ComponentModel (37)
AuthoringOM\Design\ActivityDesigner.cs (4)
947
Rectangle hitRectangle = new
Rectangle
(bounds.Left, bounds.Top, bounds.Left - bounds.Left, bounds.Height);
950
hitRectangle = new
Rectangle
(bounds.Left, bounds.Top, bounds.Width, bounds.Height - bounds.Height);
953
hitRectangle = new
Rectangle
(bounds.Right, bounds.Top, bounds.Width - bounds.Width, bounds.Height);
956
hitRectangle = new
Rectangle
(bounds.Left, bounds.Bottom, bounds.Width, bounds.Bottom - bounds.Bottom);
AuthoringOM\Design\Connector.cs (2)
518
Rectangle bounds = new
Rectangle
(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height);
1496
return new
Rectangle
(this.point.X - controlPointSize.Width / 2, this.point.Y - controlPointSize.Height / 2, controlPointSize.Width, controlPointSize.Height);
AuthoringOM\Design\DesignerHelpers.cs (4)
505
Rectangle bounds = new
Rectangle
(0, 0, Convert.ToInt32(Math.Ceiling(boundsF.Width)), Convert.ToInt32(Math.Ceiling(boundsF.Height)));
722
lineCapPath.AddEllipse(new
Rectangle
(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height));
727
lineCapPath.AddRectangle(new
Rectangle
(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height));
733
lineCapPath.AddPath(GetRoundedRectanglePath(new
Rectangle
(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height), arcRadius), true);
AuthoringOM\Design\DesignerWidgets.cs (10)
139
using (Region clipRegion = new Region(new
Rectangle
(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
196
using (Region clipRegion = new Region(new
Rectangle
(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1)))
1260
Rectangle textRectangle = new
Rectangle
(itemBounds.Left + 20 + 5 + 2, itemBounds.Top + 1, this.itemWidth - (20 + 5 + 4), this.itemHeight - 3);
1355
this.itemRectangles.Add(new
Rectangle
(2, yOffset, this.itemWidth, this.itemHeight));
1359
this.leftGradientRectangle = new
Rectangle
(2, 2, 24, yOffset - 4);
1360
this.formRectangle = new
Rectangle
(0, 0, this.itemWidth + 4, yOffset);
1936
graphics.FillRectangle(backgroundBrush, new
Rectangle
(0, 0, bitmap.Width, bitmap.Height));
1937
graphics.DrawString(this.tabItemList[tabItemIndex].Text, Font, SystemBrushes.ControlText, new
Rectangle
(0, 0, bitmap.Width, bitmap.Height), stringFormat);
2543
rectangles[j] = new
Rectangle
(rectangles[j].Left, rectangles[j].Top, stripRectangle.Right - rectangles[j].Left, rectangles[j].Height);
3417
ActivityDesignerPaint.DrawImage(graphics, previewModeImage, new
Rectangle
(this.previewModeButtonRectangle.Left + 2, this.previewModeButtonRectangle.Top + 2, this.previewModeButtonRectangle.Width - 4, this.previewModeButtonRectangle.Height - 4), DesignerContentAlignment.Center);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
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);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (3)
57
grabHandles[2] = new
Rectangle
(selectionRect.Right - grabHandleSize.Width, selectionRect.Top, grabHandleSize.Width, grabHandleSize.Height);
59
grabHandles[4] = new
Rectangle
(selectionRect.Right - grabHandleSize.Width, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height);
61
grabHandles[6] = new
Rectangle
(selectionRect.Left, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
608
ActivityDesignerPaint.DrawImage(e.Graphics, this.dragImage, new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.Size), new
Rectangle
(0, 0, this.dragImage.Width, this.dragImage.Height), DesignerContentAlignment.Center, (this.dragImageSnapped) ? 1.0f : 0.5f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale);
685
draggedImageGraphics.FillRectangle(backgroundBrush, new
Rectangle
(0, 0, draggedImage.Width, draggedImage.Height));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
134
return new
Rectangle
(Math.Min(this.startDrag.X, this.endDrag.X), Math.Min(this.startDrag.Y, this.endDrag.Y), Math.Abs(this.endDrag.X - this.startDrag.X), Math.Abs(this.endDrag.Y - this.startDrag.Y));
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
567
grabHandles[0] = new
Rectangle
(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.Width / 2, bounds.Y, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height);
568
grabHandles[1] = new
Rectangle
(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.Width / 2, bounds.Bottom - ambientTheme.SelectionSize.Height, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height);
AuthoringOM\Design\WorkflowLayouts.cs (1)
812
Rectangle logicalBounds = new
Rectangle
(column * viewablePageSize.Width, row * viewablePageSize.Height, viewablePageSize.Width, viewablePageSize.Height);
AuthoringOM\Design\WorkflowPrinting.cs (2)
127
Rectangle boundingRectangle = new
Rectangle
(margins.Left, margins.Top, printableArea.Width, printableArea.Height);
161
Rectangle viewPort = new
Rectangle
(this.currentPrintablePage.X * viewPortSize.Width - scaledAlignment.X, this.currentPrintablePage.Y * viewPortSize.Height - scaledAlignment.Y, viewPortSize.Width, viewPortSize.Height);
AuthoringOM\Design\WorkflowView.cs (4)
1082
e.Graphics.FillRectangle(SystemBrushes.Control, new
Rectangle
(Width - SystemInformation.VerticalScrollBarWidth, Height - SystemInformation.HorizontalScrollBarHeight, SystemInformation.VerticalScrollBarWidth, SystemInformation.HorizontalScrollBarHeight));
1273
hScrollBar.Bounds = new
Rectangle
(0, Math.Max(0, Height - SystemInformation.HorizontalScrollBarHeight), Math.Max(Width - ((vScrollBar.Visible) ? SystemInformation.VerticalScrollBarWidth : 0), 0), SystemInformation.HorizontalScrollBarHeight);
1276
vScrollBar.Bounds = new
Rectangle
(Math.Max(0, Width - SystemInformation.VerticalScrollBarWidth), 0, SystemInformation.VerticalScrollBarWidth, Math.Max(Height - ((hScrollBar.Visible) ? SystemInformation.HorizontalScrollBarHeight : 0), 0));
1668
viewPortGraphics.DrawImage(temporaryBitmap, new
Rectangle
(-viewPortData.ShadowDepth.Width, -viewPortData.ShadowDepth.Height, memoryBitmap.Width, memoryBitmap.Height), 0, 0, memoryBitmap.Width, memoryBitmap.Height, GraphicsUnit.Pixel, transparentColorKey);
System.WorkflowServices (10)
System\Workflow\Activities\Design\GradientPanel.cs (5)
78
frameRect = new
Rectangle
(6, 0, this.Size.Width - 14, this.Size.Height - 8);
82
frameRect = new
Rectangle
(0, 0, this.Size.Width - 1, this.Size.Height - 1);
88
Rectangle shadowRect = new
Rectangle
(frameRect.X, frameRect.Y + 6, frameRect.Width, frameRect.Height - 5);
132
Rectangle arc = new
Rectangle
(frame.Left, frame.Top, diameter, diameter);
148
Rectangle arc = new
Rectangle
(frame.Left, frame.Top, diameter, diameter);
System\Workflow\Activities\ReceiveActivityDesigner.cs (2)
184
Rectangle incomingArrowRect = new
Rectangle
(this.Location.X - 2, this.Location.Y + 20, 24, 24);
185
Rectangle outgoingArrowRect = new
Rectangle
(this.Location.X + 22, this.Location.Y + this.Size.Height - 45, -24, 24);
System\Workflow\Activities\SendActivityDesigner.cs (2)
136
Rectangle outgoingArrowRect = new
Rectangle
(this.Location.X + this.Size.Width - 24, this.Location.Y + 10, 24, 24);
137
Rectangle incomingArrowRect = new
Rectangle
(this.Location.X + this.Size.Width, this.Location.Y + this.Size.Height - 35, -24, 24);
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (1)
88
Rectangle arc = new
Rectangle
(frame.Left, frame.Top, diameter, diameter);