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