640 instantiations of Rectangle
System.Drawing (31)
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 (7)
42public static readonly Rectangle Empty = new Rectangle(); 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 (3)
64CreateRegion(new Rectangle(x,y,width, height)); 191return new Rectangle( -Int32.MaxValue, -Int32.MaxValue, Int32.MaxValue, Int32.MaxValue ); 196return new Rectangle(new Point(rect.left, rect.top), rect.Size);
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 (449)
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 (3)
64CreateRegion(new Rectangle(x,y,width, height)); 191return new Rectangle( -Int32.MaxValue, -Int32.MaxValue, Int32.MaxValue, Int32.MaxValue ); 196return new Rectangle(new Point(rect.left, rect.top), rect.Size);
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 (4)
57using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) { 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\CheckableControlBaseAdapter.cs (1)
40using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (1)
85using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) {
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\CheckBoxRenderer.cs (3)
104Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 145Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 191Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state));
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 (19)
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); 5934outerBorder = new Rectangle(clientRect.Location, new Size(clientRect.Width - 1, clientRect.Height - 1)); 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 (14)
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); 10362PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.Empty, this.Size)); 10383Rectangle clientBounds = new Rectangle(clientOffset, ClientSize); 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 (11)
267BitmapData data = bitmap.LockBits(new Rectangle(0,0, width, height), 502Rectangle partOfImageToDraw = new Rectangle(Point.Empty, imageRect.Size); 509Rectangle partOfImageToDraw = new Rectangle(new Point(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y) 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 (26)
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, 4521Rectangle refresh = new Rectangle(); 4703Rectangle r = new Rectangle(inside.X, e.Y, inside.Width, 3); 4711Rectangle r = new Rectangle(e.X, inside.Y, 3, inside.Height); 5733newLayout.Inside = new Rectangle(); 5734newLayout.TopLeftHeader = new Rectangle(); 5735newLayout.ColumnHeaders = new Rectangle(); 5736newLayout.RowHeaders = new Rectangle(); 5737newLayout.Data = new Rectangle(); 5738newLayout.Caption = new Rectangle(); 5739newLayout.ParentRows = new Rectangle(); 5740newLayout.ResizeBoxRect = new Rectangle(); 5773region.Exclude(new Rectangle(rowExclude.X, 6323Rectangle rowRect = new Rectangle(inside.X, 6448Rectangle rowBounds = new Rectangle(); 6599Rectangle columnArea = new Rectangle(); 6653Rectangle invalid = new Rectangle(); 6669Rectangle inner = new Rectangle(rowRect.X + r.X, rowRect.Y + r.Y, r.Width, r.Height); 6805layout.ResizeBoxRect = new Rectangle(); 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 (7)
68private Rectangle backButtonRect = new Rectangle(); 69private Rectangle downButtonRect = new Rectangle(); 70private Rectangle textRect = new Rectangle(); 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 (4)
238Rectangle cellBounds = new Rectangle(); 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\DataGridTable.cs (1)
911relationshipRect = new Rectangle();
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 (6)
1057Rectangle rect = new Rectangle(); 1244cellBounds = new Rectangle(new Point(0, 0), GetSize(rowIndex)); 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 (28)
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)); 10475this.layout.ResizeBoxRect = new Rectangle(); 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, 19353Invalidate(new Rectangle(new Point(-pt.X, ColumnHeadersHeight), 19364Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight), 19371Invalidate(new Rectangle(new Point(0, -pt.Y), 19378Invalidate(new Rectangle(new Point(0, ColumnHeadersHeight), 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)); 20062Rectangle columnHeadersClip = new Rectangle(); 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\DataGridViewUtilities.cs (1)
344return new Rectangle(GetTextLocation(cellBounds, sizeConstraint, flags, cellStyle), sizeConstraint);
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 (3)
1110return new Rectangle(xLoc, yLoc, pointImageSize.Width, pointImageSize.Height); 1624ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter); 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 (7)
91Rectangle newBounds = new Rectangle(location, newSize); 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 (4)
57Rectangle measureBounds = new Rectangle(new Point(0, 0), proposedConstraints); 119Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height); 129Rectangle rowBounds = new Rectangle(displayRect.X, 220Rectangle cellBounds = new Rectangle(location, new Size(requiredSize.Width, rowBounds.Height));
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\ListViewItem.cs (2)
370return new Rectangle(); 1055else return new Rectangle();
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\Panel.cs (1)
296ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
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\RadioButtonRenderer.cs (3)
103Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 138Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 184Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd));
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 (3)
155splitterRect = new Rectangle(); 1548Rectangle r = new Rectangle(); 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 (7)
4026Rectangle comparisonRect = new Rectangle(point, onePixel); 4180item.SetBounds(new Rectangle(location, item.Size)); 4621cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new Rectangle(cursorLocation, onePixel)).Location; 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 (4)
1214Rectangle suggestedScreenBounds = new Rectangle(screenPoint, suggestedBounds.Size); 1230dropDownBounds = new Rectangle(parentClientPoint, suggestedBounds.Size); 1247Rectangle dropDownBounds = new Rectangle(Point.Empty, GetSuggestedSize()); 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\ToolStripDropDownItem.cs (3)
122Rectangle ownerItemBounds = new Rectangle(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size); 382Rectangle dropDownBounds = new Rectangle(Point.Empty, DropDown.GetSuggestedSize()); 387Rectangle itemScreenBounds = new Rectangle(this.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), this.Size);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (10)
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); 474textRectangle = new Rectangle(nextPoint, maxTextSize); 479arrowRectangle = new Rectangle(nextPoint, maxArrowSize); 510textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(Point.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y; 783UpScrollButton.SetBounds(new Rectangle(upLocation, upSize)); 789DownScrollButton.SetBounds(new Rectangle(downLocation, downSize));
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (14)
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)); 138 Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size); 185 DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 227 Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 254 Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 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)); 313 Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size); 393Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size); 420 Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size);
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
2753ParentInternal.Invalidate(new Rectangle(rectangleLocation, r.Size), true); 3639SetBounds(new Rectangle(x,y,width,height)); 4406return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size); 4693Rectangle bounds = new Rectangle(Point.Empty, ownerItem.Size);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
820ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (5)
41Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 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 (43)
158overflowArrowRect = new Rectangle(0, item.Height - overflowArrowOffsetY, overflowArrowWidth, overflowArrowHeight); 161overflowArrowRect = new Rectangle(item.Width - overflowButtonWidth, item.Height - overflowArrowOffsetY, overflowArrowWidth, overflowArrowHeight); 216Rectangle bounds = new Rectangle(Point.Empty, item.Size); 232RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 247Rectangle bounds = new Rectangle(Point.Empty, item.Size); 291ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0,0,item.Width, item.Height), item.BorderStyle, (Border3DSide)item.BorderSides); 314Rectangle bounds = new Rectangle(Point.Empty, item.Size); 375Rectangle bounds = new Rectangle(Point.Empty, toolStrip.Size); 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); 492Rectangle bounds = new Rectangle(Point.Empty, item.Size); 673e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 732Rectangle bounds = new Rectangle(Point.Empty, toolStrip.Size); 748Rectangle topLeftParentHorizontalPixels = new Rectangle(topLeft, onePix); 749Rectangle bottomLeftParentHorizontalPixels = new Rectangle(bottomLeft, new Size(2, 1)); 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); 958Rectangle bounds = new Rectangle(Point.Empty, item.Size); 983Rectangle gradientBounds = new Rectangle(Point.Empty, parent.Size); 987g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 992Rectangle gradientBounds = new Rectangle(Point.Empty, control.Size); 1003g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 1014Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1024Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1036Rectangle bounds = new Rectangle(Point.Empty, toolStripDropDown.Size); 1056Rectangle overflowBoundsFill = new Rectangle(Point.Empty, e.Item.Size); 1140Rectangle fillRect = new Rectangle(overflowBoundsFill.X - 1, 0, 1, 1); 1155Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1172Rectangle topLeftShadowRect = new Rectangle(topLeft, onePix); 1176Rectangle topLeftShadowRect2 = new Rectangle(topLeft, onePix); 1180Rectangle topRightShadowRect = new Rectangle(topRight, onePix); 1207g.FillRectangle(b, new Rectangle(gradientCopyPixel, onePix)); 1211Rectangle otherBottom = new Rectangle(bottomLeft.X, bottomLeft.Y - 2, 1, 1); 1371Rectangle bounds = new Rectangle(Point.Empty, item.Size);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (9)
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) }; 878e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty,imageRect.Size), GraphicsUnit.Pixel); 942TextRenderer.DrawText(textGraphics, text, textFont, new Rectangle(Point.Empty, textSize), textColor, textFormat); 1083new Rectangle(0, 0, size.Width, size.Height),
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (3)
30this.affectedBounds = new Rectangle(Point.Empty, toolStrip.Size); 113Rectangle itemBounds = new Rectangle(toolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size); 129return new Rectangle(itemBounds.X+1, 0, itemBounds.Width -2, 2);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (5)
368Rectangle dropDownButtonBounds = new Rectangle(Point.Empty, this.Size); 372dropDownButtonBounds = new Rectangle(Point.Empty, new Size(Math.Min(this.Width, DropDownButtonWidth), this.Height)); 378splitButtonButtonBounds = new Rectangle(Point.Empty, new Size(splitButtonButtonWidth, splitButtonButtonHeight)); 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 (10)
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)); 518Rectangle itemBounds = new Rectangle(itemLocation, itemSize); 544item.SetBounds(new Rectangle(itemLocation, itemSize));
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (11)
258Rectangle bounds = new Rectangle(Point.Empty, e.GripBounds.Size); 341vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 347DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 374Rectangle bounds = new Rectangle(Point.Empty, item.Size); 392Rectangle fillRect = new Rectangle(Point.Empty, item.Size); 437RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 446ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0,0,item.Width-1, item.Height-1), item.BorderStyle, (Border3DSide)item.BorderSides); 466Rectangle bounds = new Rectangle(Point.Empty, splitButton.Size); 576vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 579RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes)); 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 (2)
2828bounds = new Rectangle(textLoc, new Size(textSize.Width, bounds.Height)); 3137Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\UpDownBase.cs (10)
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); 1093Rectangle clientArea = new Rectangle(Point.Empty, ClientSize); 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));
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
738this.graphics.SetClip(new Rectangle(Point.Empty, translatedBounds.Size));
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 (13)
Designers\SetStateDesigner.cs (1)
99return new Rectangle(location, size);
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 (5)
124return new Rectangle(_location, _size); 407Rectangle rectangle = new Rectangle(_imageLocation, _imageSize); 416Rectangle rectangle = new Rectangle(_textLocation, _textSize); 808Rectangle separatorRectangle = new Rectangle( 1205Rectangle rectangle = new Rectangle(location, size);
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);
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
440Rectangle listboxRectangle = new Rectangle(locationInDialog, this.listBoxAutoComplete.Size);
System.Workflow.ComponentModel (111)
AuthoringOM\Design\ActivityDesigner.cs (8)
264return new Rectangle(Location, Size); 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); 1072Rectangle viewPort = new Rectangle(bounds.Location, new Size(bounds.Width + 1, bounds.Height + 1)); 1895return new Rectangle(PointToScreen(rectangle.Location), parentView.LogicalSizeToClient(rectangle.Size)); 1916return new Rectangle(PointToLogical(rectangle.Location), parentView.ClientSizeToLogical(rectangle.Size));
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
992rectangle = new Rectangle(configErrorLocation, configErrorSize);
AuthoringOM\Design\CompositeActivityDesigner.cs (3)
243Rectangle expandButtonRectangle = new Rectangle(bounds.Location, designerTheme.ExpandButtonSize); 302Rectangle imageRectangle = new Rectangle(bounds.Location, imageSize); 354Rectangle textRectangle = new Rectangle(bounds.Location, textSize);
AuthoringOM\Design\Connector.cs (4)
137Rectangle enclosingBounds = new Rectangle(new Point(location.X - size.Width / 2, location.Y - size.Height / 2), size); 518Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height); 755return new Rectangle(parentView.LogicalPointToScreen(bounds.Location), parentView.LogicalSizeToClient(bounds.Size)); 1496return new Rectangle(this.point.X - controlPointSize.Width / 2, this.point.Y - controlPointSize.Height / 2, controlPointSize.Width, controlPointSize.Height);
AuthoringOM\Design\DesignerHelpers.cs (11)
135DrawImage(graphics, image, destination, new Rectangle(Point.Empty, image.Size), alignment, 1.0f, false); 143DrawImage(graphics, image, destination, new Rectangle(Point.Empty, image.Size), DesignerContentAlignment.Center, transparency, false); 321DrawImage(graphics, image, bounds, new Rectangle(Point.Empty, image.Size), DesignerContentAlignment.Fill, transparency, (buttonState == ButtonState.Inactive)); 339graphics.FillRectangle(ambientTheme.MajorGridBrush, new Rectangle(new Point(gridCoOrdX, gridCoOrdY), new Size(1, 1))); 343graphics.FillRectangle(ambientTheme.MinorGridBrush, new Rectangle(new Point(gridCoOrdX + ambientTheme.GridSize.Width / 2, gridCoOrdY + ambientTheme.GridSize.Height / 2), new Size(1, 1))); 505Rectangle bounds = new Rectangle(0, 0, Convert.ToInt32(Math.Ceiling(boundsF.Width)), Convert.ToInt32(Math.Ceiling(boundsF.Height))); 516DrawImage(graphics, compositeDesignerTheme.WatermarkImage, bounds, new Rectangle(Point.Empty, compositeDesignerTheme.WatermarkImage.Size), compositeDesignerTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 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); 1894Rectangle enclosingRect = new Rectangle(leftTop, new Size(rightBottom.X - leftTop.X, rightBottom.Y - leftTop.Y));
AuthoringOM\Design\DesignerWidgets.cs (16)
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))) 1257graphics.DrawImage(this.enabledItems[i].Image, new Rectangle(imagePoint, imageSize), new Rectangle(Point.Empty, imageSize), GraphicsUnit.Pixel); 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); 1772TabChange(this, new TabSelectionChangeEventArgs(previousTab, currentTab, new Rectangle(PointToScreen(tabItemBounds.Location), tabItemBounds.Size))); 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); 2953bounds = new Rectangle(workflowView.LogicalPointToScreen(bounds.Location), workflowView.LogicalSizeToClient(bounds.Size)); 3417ActivityDesignerPaint.DrawImage(graphics, previewModeImage, new Rectangle(this.previewModeButtonRectangle.Left + 2, this.previewModeButtonRectangle.Top + 2, this.previewModeButtonRectangle.Width - 4, this.previewModeButtonRectangle.Height - 4), DesignerContentAlignment.Center); 3470graphics.DrawImage(previewedActivityImage, destnRectangle, new Rectangle(Point.Empty, previewedActivityImage.Size), GraphicsUnit.Pixel); 3598bounds = new Rectangle(workflowView.LogicalPointToScreen(bounds.Location), workflowView.LogicalSizeToClient(bounds.Size));
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\FreeFormDesigner.cs (4)
518FreeformActivityDesigner.SetDesignerBounds(containedDesigner, new Rectangle(newLocation, containedDesigner.Size)); 537FreeformActivityDesigner.SetDesignerBounds(containedDesigner, new Rectangle(containedDesigner.Location, newSize)); 988ParentView.InvalidateClientRectangle(new Rectangle(designer.Location, designer.Size)); 990ParentView.InvalidateClientRectangle(new Rectangle(designer.Location, designer.Size));
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
53Rectangle bounds = new Rectangle(configErrorLocation, configErrorSize);
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
26return new Rectangle(this.glyphPoint, WorkflowTheme.CurrentTheme.AmbientTheme.DropIndicatorSize);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (9)
55grabHandles[0] = new Rectangle(selectionRect.Location, grabHandleSize); 56grabHandles[1] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Top), grabHandleSize); 57grabHandles[2] = new Rectangle(selectionRect.Right - grabHandleSize.Width, selectionRect.Top, grabHandleSize.Width, grabHandleSize.Height); 58grabHandles[3] = new Rectangle(new Point(selectionRect.Right - grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize); 59grabHandles[4] = new Rectangle(selectionRect.Right - grabHandleSize.Width, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height); 60grabHandles[5] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize); 61grabHandles[6] = new Rectangle(selectionRect.Left, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height); 62grabHandles[7] = new Rectangle(new Point(selectionRect.Left, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize); 68grabHandles[0] = new Rectangle(selectionRect.Location, grabHandleSize);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (2)
112Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.ViewPortSize); 153Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.ViewPortSize);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (8)
396parentView.InvalidateClientRectangle(new Rectangle(oldDragImagePoint, this.dragImage.Size)); 397parentView.InvalidateClientRectangle(new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.Size)); 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); 673Rectangle imageRectangle = (image != null) ? new Rectangle(Point.Empty, image.Size) : Rectangle.Empty; 674Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new Size(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty; 685draggedImageGraphics.FillRectangle(backgroundBrush, new Rectangle(0, 0, draggedImage.Width, draggedImage.Height)); 687draggedImageGraphics.DrawImage(image, new Rectangle(Point.Empty, image.Size));
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\MessageFilters\DynamicActionMessageFilter.cs (5)
321Rectangle bounds = new Rectangle(Point.Empty, ParentView.ViewPortSize); 325return new Rectangle(ActivityDesignerPaint.GetRectangleFromAlignment(action.DockAlignment, bounds, action.Bounds.Size).Location, action.Bounds.Size); 547ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(Point.Empty, buttonImage.Size), DesignerContentAlignment.Fill, transparency, (button.State == ActionButton.States.Disabled)); 559ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(Point.Empty, buttonImage.Size), DesignerContentAlignment.Fill, this.transparency, false); 572return new Rectangle(Point.Empty, size);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (3)
170ActivityDesignerPaint.DrawImage(eventArgs.Graphics, this.draggedDesignerImages[i], new Rectangle(new Point(locations[i].X - 2 * ambientTheme.Margin.Width, locations[i].Y - 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false); 232Rectangle rectangle = new Rectangle(locations[i], this.draggedDesignerImages[i].Size);
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
338ActivityDesigner[] containedDesigners = GetActivityDesigners(parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.ViewPortSize)));
AuthoringOM\Design\SequentialActivityDesigner.cs (3)
518Rectangle logicalViewPort = parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.ViewPortSize)); 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\SequentialWorkflowRootDesigner.cs (1)
399Rectangle headerBarRectangle = new Rectangle();
AuthoringOM\Design\WorkflowLayouts.cs (12)
142Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.Size); 178ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, this.parentView.RootDesigner.Bounds, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 195Rectangle bitmapArea = new Rectangle(Point.Empty, memoryBitmap.Size); 523graphics.FillRectangle(Brushes.White, new Rectangle(Point.Empty, memoryBitmap.Size)); 540Rectangle physicalViewPort = new Rectangle(points[0], new Size(points[1])); 575ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, viewPortBitmapArea, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 596Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.Size); 613Rectangle physicalViewPort = new Rectangle(points[0], new Size(points[1])); 681ActivityDesignerPaint.DrawImage(graphics, memoryBitmap, new Rectangle(bitmapDrawingPoint, viewPortBitmapArea.Size), viewPortBitmapArea, DesignerContentAlignment.Fill, 1.0f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale); 812Rectangle logicalBounds = new Rectangle(column * viewablePageSize.Width, row * viewablePageSize.Height, viewablePageSize.Width, viewablePageSize.Height); 813Rectangle pageBounds = new Rectangle(pageLocation, this.pageSize); 814Rectangle viewablePageBounds = new Rectangle(viewablePageLocation, viewablePageSize);
AuthoringOM\Design\WorkflowPrinting.cs (3)
127Rectangle boundingRectangle = new Rectangle(margins.Left, margins.Top, printableArea.Width, printableArea.Height); 138ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, boundingRectangle, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 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 (12)
437return new Rectangle(ScrollPosition, ViewPortSize); 1039viewPortData.LogicalViewPort = ClientRectangleToLogical(new Rectangle(Point.Empty, ViewPortSize)); 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)); 1535viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new Size(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height)); 1660viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(Point.Empty, new Size(memoryBitmap.Size.Width - viewPortData.ShadowDepth.Width - 1, memoryBitmap.Size.Height - viewPortData.ShadowDepth.Height - 1))); 1668viewPortGraphics.DrawImage(temporaryBitmap, new Rectangle(-viewPortData.ShadowDepth.Width, -viewPortData.ShadowDepth.Height, memoryBitmap.Width, memoryBitmap.Height), 0, 0, memoryBitmap.Width, memoryBitmap.Height, GraphicsUnit.Pixel, transparentColorKey); 1737Rectangle clientRectangle = ClientRectangleToLogical(new Rectangle(Point.Empty, ViewPortSize)); 2080return new Rectangle(LogicalPointToClient(clientViewPort.Location, false), LogicalSizeToClient(clientViewPort.Size)); 2088Rectangle scaledLogicalViewPort = new Rectangle(ClientPointToLogical(rectangle.Location, false), ClientSizeToLogical(rectangle.Size)); 2263return new Rectangle(this.workflowView.PointToScreen(Point.Empty), this.workflowView.ViewPortSize);
System.WorkflowServices (11)
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\Design\RichListBox.cs (1)
141listItemRenderer.DrawToBitmap(rendererBitmap, new Rectangle(new Point(0, 0), listItemRenderer.Size));
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);
3225 references to Rectangle
System.Drawing (205)
commonui\System\Drawing\Advanced\Gdiplus.cs (1)
3317internal static IntPtr ConvertRectangleToMemory(Rectangle[] rect) {
commonui\System\Drawing\Advanced\GPRECT.cs (2)
29internal GPRECT(Rectangle rect) { 36internal Rectangle ToRectangle() {
commonui\System\Drawing\Advanced\GraphicsPath.cs (6)
802public void AddArc(Rectangle rect, float startAngle, float sweepAngle) { 1168public void AddRectangle(Rectangle rect) { 1182public void AddRectangles(Rectangle[] rects) { 1228public void AddEllipse(Rectangle rect) { 1258public void AddPie(Rectangle rect, float startAngle, float sweepAngle) { 1430Rectangle layoutRect, StringFormat format) {
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (3)
133public LinearGradientBrush(Rectangle rect, Color color1, Color color2, 220public LinearGradientBrush(Rectangle rect, Color color1, Color color2, 234public LinearGradientBrush(Rectangle rect, Color color1, Color color2,
commonui\System\Drawing\Advanced\Matrix.cs (1)
115public Matrix(Rectangle rect, Point[] plgpts) {
commonui\System\Drawing\Advanced\Metafile.cs (13)
258public Metafile(IntPtr referenceHdc, Rectangle frameRect) : 270public Metafile(IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit) : 282public Metafile(IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type) : 294public Metafile(IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string desc) 464public Metafile(string fileName, IntPtr referenceHdc, Rectangle frameRect) : 476public Metafile(string fileName, IntPtr referenceHdc, Rectangle frameRect, 489public Metafile(string fileName, IntPtr referenceHdc, Rectangle frameRect, 502public Metafile(string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, string description) : 514public Metafile(string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string description) 676public Metafile(Stream stream, IntPtr referenceHdc, Rectangle frameRect) : 688public Metafile(Stream stream, IntPtr referenceHdc, Rectangle frameRect, 701public Metafile(Stream stream, IntPtr referenceHdc, Rectangle frameRect, 714public Metafile(Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit,
commonui\System\Drawing\Advanced\MetafileHeader.cs (2)
111/// Gets a <see cref='System.Drawing.Rectangle'/> that bounds the associated 114public Rectangle Bounds
commonui\System\Drawing\Advanced\RectangleF.cs (8)
301/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/> . 316/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/> . 329/// this <see cref='System.Drawing.Rectangle'/> . 355/// Inflates this <see cref='System.Drawing.Rectangle'/> 368/// Inflates this <see cref='System.Drawing.Rectangle'/> by the specified amount. 377/// Creates a <see cref='System.Drawing.Rectangle'/> 475/// Converts the specified <see cref='System.Drawing.Rectangle'/> to a 478public static implicit operator RectangleF(Rectangle r) {
commonui\System\Drawing\Advanced\TextureBrush.cs (3)
150public TextureBrush(Image image, WrapMode wrapMode, Rectangle dstRect) { 248public TextureBrush(Image image, Rectangle dstRect) 265public TextureBrush(Image image, Rectangle dstRect,
commonui\System\Drawing\Bitmap.cs (4)
487public Bitmap Clone(Rectangle rect, PixelFormat format) { 588Rectangle rectangle = new Rectangle(0,0, size.Width, size.Height); 628public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format) { 642public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData)
commonui\System\Drawing\BufferedGraphicsContext.cs (5)
115public BufferedGraphics Allocate(Graphics targetGraphics, Rectangle targetRectangle) { 130public BufferedGraphics Allocate(IntPtr targetDC, Rectangle targetRectangle) { 144private BufferedGraphics AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle) { 196private BufferedGraphics AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle) { 673private bool ShouldUseTempManager(Rectangle targetBounds) {
commonui\System\Drawing\Design\PaintValueEventArgs.cs (3)
42private readonly Rectangle bounds; 48public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) { 64public Rectangle Bounds {
commonui\System\Drawing\Design\UITypeEditor.cs (1)
138public void PaintValue(object value, Graphics canvas, Rectangle rectangle) {
commonui\System\Drawing\Graphics.cs (51)
1306public void DrawArc(Pen pen, Rectangle rect, float startAngle, float sweepAngle) { 1410public void DrawRectangle(Pen pen, Rectangle rect) { 1486public void DrawRectangles(Pen pen, Rectangle[] rects) { 1545public void DrawEllipse(Pen pen, Rectangle rect) { 1606public void DrawPie(Pen pen, Rectangle rect, float startAngle, float sweepAngle) { 2021public void FillRectangle(Brush brush, Rectangle rect) { 2076public void FillRectangles(Brush brush, Rectangle[] rects) { 2207public void FillEllipse(Brush brush, Rectangle rect) { 2236public void FillPie(Brush brush, Rectangle rect, float startAngle, 2702public void DrawIcon(Icon icon, Rectangle targetRect) { 2727public void DrawIconUnstretched(Icon icon, Rectangle targetRect) { 2833public void DrawImage(Image image, Rectangle rect) { 2878public void DrawImageUnscaled(Image image, Rectangle rect) { 2892public void DrawImageUnscaledAndClipped(Image image, Rectangle rect) { 3018public void DrawImage(Image image, int x, int y, Rectangle srcRect, 3080public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, 3211public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit) { 3218public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, 3225public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, 3233public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, 3277public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, 3284public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, 3292public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, 3301public void DrawImage(Image image, Rectangle destRect, float srcX, float srcY, 3333public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, 3340public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, 3348public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, 3356public void DrawImage(Image image, Rectangle destRect, int srcX, int srcY, 3495public void EnumerateMetafile(Metafile metafile, Rectangle destRect, 3502public void EnumerateMetafile(Metafile metafile, Rectangle destRect, 3510public void EnumerateMetafile(Metafile metafile, Rectangle destRect, 3665Rectangle srcRect, GraphicsUnit srcUnit, 3673Rectangle srcRect, GraphicsUnit srcUnit, 3682Rectangle srcRect, GraphicsUnit unit, 3751public void EnumerateMetafile(Metafile metafile, Rectangle destRect, 3752Rectangle srcRect, GraphicsUnit srcUnit, 3759public void EnumerateMetafile(Metafile metafile, Rectangle destRect, 3760Rectangle srcRect, GraphicsUnit srcUnit, 3771public void EnumerateMetafile(Metafile metafile, Rectangle destRect, 3772Rectangle srcRect, GraphicsUnit unit, 3863Rectangle srcRect, GraphicsUnit srcUnit, 3874Rectangle srcRect, GraphicsUnit srcUnit, 3886Rectangle srcRect, GraphicsUnit unit, 3950public void SetClip(Rectangle rect) { 3957public void SetClip(Rectangle rect, CombineMode combineMode) { 4024public void IntersectClip(Rectangle rect) { 4063public void ExcludeClip(Rectangle rect) { 4352public bool IsVisible(Rectangle rect) { 4536public GraphicsContainer BeginContainer(Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit) {
commonui\System\Drawing\Icon.cs (8)
417private void DrawIcon(IntPtr dc, Rectangle imageRect, Rectangle targetRect, bool stretch) { 505internal void Draw(Graphics graphics, Rectangle targetRect) { 506Rectangle copy = targetRect; 514DrawIcon(dc, Rectangle.Empty, copy, true); 530internal void DrawUnstretched(Graphics graphics, Rectangle targetRect) { 531Rectangle copy = targetRect; 538DrawIcon(dc, Rectangle.Empty, copy, false);
commonui\System\Drawing\Printing\PageSettings.cs (4)
63public Rectangle Bounds { 71Rectangle pageBounds = GetBounds(modeHandle); 445internal Rectangle GetBounds(IntPtr modeHandle) { 446Rectangle pageBounds;
commonui\System\Drawing\Printing\PrintController.cs (2)
263Rectangle pageBounds = pageSettings.GetBounds(modeHandle); 264Rectangle marginBounds = new Rectangle(pageSettings.Margins.Left,
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (2)
81public static Rectangle Convert(Rectangle value, PrinterUnit fromUnit, PrinterUnit toUnit) {
commonui\System\Drawing\Printing\PrintPageEvent.cs (6)
22private readonly Rectangle marginBounds; 23private readonly Rectangle pageBounds; 34public PrintPageEventArgs(Graphics graphics, Rectangle marginBounds, Rectangle pageBounds, PageSettings pageSettings) { 78public Rectangle MarginBounds { 90public Rectangle PageBounds {
commonui\System\Drawing\Rectangle.cs (52)
42public static readonly Rectangle Empty = new Rectangle(); 52/// Initializes a new instance of the <see cref='System.Drawing.Rectangle'/> 79/// Creates a new <see cref='System.Drawing.Rectangle'/> with 83public static Rectangle FromLTRB(int left, int top, int right, int bottom) { 94/// upper-left corner of the rectangular region represented by this <see cref='System.Drawing.Rectangle'/>. 110/// Gets or sets the size of this <see cref='System.Drawing.Rectangle'/>. 126/// upper-left corner of the rectangular region defined by this <see cref='System.Drawing.Rectangle'/>. 140/// upper-left corner of the rectangular region defined by this <see cref='System.Drawing.Rectangle'/>. 154/// region defined by this <see cref='System.Drawing.Rectangle'/>. 168/// region defined by this <see cref='System.Drawing.Rectangle'/>. 183/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/> . 196/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/>. 210/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/>. 224/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/>. 237/// Tests whether this <see cref='System.Drawing.Rectangle'/> has a <see cref='System.Drawing.Rectangle.Width'/> 238/// or a <see cref='System.Drawing.Rectangle.Height'/> of 0. 253/// Tests whether <paramref name="obj"/> is a <see cref='System.Drawing.Rectangle'/> with 258if (!(obj is Rectangle)) 261Rectangle comp = (Rectangle)obj; 272/// Tests whether two <see cref='System.Drawing.Rectangle'/> 276public static bool operator ==(Rectangle left, Rectangle right) { 286/// Tests whether two <see cref='System.Drawing.Rectangle'/> 290public static bool operator !=(Rectangle left, Rectangle right) { 299public static Rectangle Ceiling(RectangleF value) { 311public static Rectangle Truncate(RectangleF value) { 323public static Rectangle Round(RectangleF value) { 334/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/> . 349/// rectangular region defined by this <see cref='System.Drawing.Rectangle'/> . 362/// this <see cref='System.Drawing.Rectangle'/> . 366public bool Contains(Rectangle rect) { 388/// Inflates this <see cref='System.Drawing.Rectangle'/> 401/// Inflates this <see cref='System.Drawing.Rectangle'/> by the specified amount. 411/// Creates a <see cref='System.Drawing.Rectangle'/> 416public static Rectangle Inflate(Rectangle rect, int x, int y) { 417Rectangle r = rect; 425public void Intersect(Rectangle rect) { 426Rectangle result = Rectangle.Intersect(rect, this); 438public static Rectangle Intersect(Rectangle a, Rectangle b) { 449return Rectangle.Empty; 457public bool IntersectsWith(Rectangle rect) { 472public static Rectangle Union(Rectangle a, Rectangle b) { 503/// Converts the attributes of this <see cref='System.Drawing.Rectangle'/> to a
commonui\System\Drawing\RectangleConverter.cs (7)
115if( value is Rectangle ){ 117Rectangle rect = (Rectangle)value; 136Rectangle rect = (Rectangle)value; 137ConstructorInfo ctor = typeof(Rectangle).GetConstructor(new Type[] { 194PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Rectangle), attributes);
commonui\System\Drawing\Region.cs (16)
81/// Initializes a new instance of the <see cref='System.Drawing.Region'/> class from the specified <see cref='System.Drawing.Rectangle'/>. 86public Region(Rectangle rect) { 293/// <see cref='System.Drawing.Rectangle'/>. 296public void Intersect(Rectangle rect) { 372/// specified <see cref='System.Drawing.Rectangle'/>. 374public void Union(Rectangle rect) { 431/// intersection of itself with the specified <see cref='System.Drawing.Rectangle'/>. 433public void Xor(Rectangle rect) { 489/// that does not intersect with the specified <see cref='System.Drawing.Rectangle'/>. 491public void Exclude(Rectangle rect) { 549/// specified <see cref='System.Drawing.Rectangle'/> that does not intersect with this <see cref='System.Drawing.Region'/>. 551public void Complement(Rectangle rect) { 936/// Tests whether the specified <see cref='System.Drawing.Rectangle'/> is contained within this 940public bool IsVisible(Rectangle rect) { 958/// Tests whether the specified <see cref='System.Drawing.Rectangle'/> is contained within this 963public bool IsVisible(Rectangle rect, Graphics g) {
misc\GDI\NativeMethods.cs (2)
177public RECT(System.Drawing.Rectangle r) 202public System.Drawing.Rectangle ToRectangle()
misc\GDI\WindowsRegion.cs (3)
55public WindowsRegion(Rectangle rect) { 133private void CreateRegion(Rectangle rect) { 189public Rectangle ToRectangle() {
System.Web.DataVisualization (66)
Common\General\AxisScaleSegments.cs (1)
707 breakPosition = Rectangle.Round(graph.GetAbsoluteRectangle(breakPosition));
Common\General\ChartGraphics.cs (8)
1812common.HotRegionsList.AddHotRegion(Rectangle.Round(absPosition), label, ChartElementType.AxisLabels, false, true); 1978RectangleF labelRect = Rectangle.Empty; 2331Rectangle.Round(imageRect), 2417 Rectangle absPositionRounded = Rectangle.Round(absPosition); 2556 Rectangle absPositionRounded = Rectangle.Round(absPosition); 5150 path.AddPie(Rectangle.Round(gradientPath), startAngle, sweepAngle);
Common\General\ChartRenderingEngine.cs (2)
162 Rectangle destRect, 384 Rectangle destRect,
Common\General\GdiGraphics.cs (2)
119 Rectangle destRect, 264 Rectangle destRect,
Common\General\IChartRenderingEngine.cs (2)
94 Rectangle destRect, 209 Rectangle destRect,
Common\General\Legend.cs (33)
353 private Rectangle _titlePosition = Rectangle.Empty; 356 private Rectangle _headerPosition = Rectangle.Empty; 380 private Rectangle _legendItemsAreaPosition = Rectangle.Empty; 442 Rectangle legendPosition = Rectangle.Round(chartGraph.GetAbsoluteRectangle(legendPositionRel)); 466 this._titlePosition = Rectangle.Empty; 490 this._headerPosition = Rectangle.Empty; 735 Rectangle cellPosition = this.GetCellPosition(currentColumn, currentRow, cellIndex, itemHalfSpacing); 744 Rectangle overlappedCellPosition = this.GetCellPosition(currentColumn, currentRow, cellIndex + spanIndex, itemHalfSpacing); 759 Rectangle.Empty, 800 private Rectangle GetCellPosition( 806 Rectangle cellPosition = this._legendItemsAreaPosition; 2386 chartGraph.GetRelativeRectangle(Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF()))), 2458 Rectangle separatorPosition = Rectangle.Empty; 2492 Rectangle separatorRect = Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF())); 4039 Rectangle legendPosition = Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF())); 4072 Rectangle rect = this._headerPosition; 4096 Rectangle fillRect = rect; 4213 Rectangle separatorRect = this._headerPosition; 4233 chartGraph.GetRelativeRectangle(Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF()))), 4271 Rectangle legendPosition = Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF())); 4286 Rectangle fillRect = this._titlePosition; 4315 Rectangle rect = this._titlePosition; 4332 Rectangle separatorPosition = this._titlePosition; 4347 chartGraph.GetRelativeRectangle(Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF()))), 4432 Rectangle position)
Common\General\LegendColumns.cs (13)
877 internal Rectangle cellPosition = Rectangle.Empty; 881 internal Rectangle cellPositionWithMargins = Rectangle.Empty; 1438 Rectangle position, 2092 Rectangle imagePosition = Rectangle.Empty; 2103 Rectangle imageCellPosition = this.cellPosition; 2221 Rectangle seriesMarkerPosition = this.cellPosition; 2287 Rectangle imageScale = Rectangle.Empty; 2427 Rectangle imageScale = Rectangle.Empty;
Common\General\Selection.cs (4)
2535path.AddRectangle(Rectangle.Round(rect)); 2822rect = Rectangle.Empty; 2859rect = Rectangle.Empty; 2872rect = Rectangle.Empty;
WebForm\ChartWebControl.cs (1)
1044public void Paint(Graphics graphics, Rectangle position)
System.Web.Mobile (1)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
36Rectangle r = ClientRectangle;
System.Windows.Forms (2237)
misc\GDI\NativeMethods.cs (2)
177public RECT(System.Drawing.Rectangle r) 202public System.Drawing.Rectangle ToRectangle()
misc\GDI\WindowsGraphics2.cs (12)
76public void DrawPie(WindowsPen pen, Rectangle bounds, float startAngle, float sweepAngle) 125public void DrawAndFillEllipse(WindowsPen pen, WindowsBrush brush, Rectangle bounds) 167Rectangle bounds = new Rectangle( pt.X, pt.Y, Int32.MaxValue, Int32.MaxValue ); 174public void DrawText(string text, WindowsFont font, Rectangle bounds, Color foreColor) 182public void DrawText(string text, WindowsFont font, Rectangle bounds, Color foreColor, Color backColor) 190public void DrawText(string text, WindowsFont font, Rectangle bounds, Color color, IntTextFormatFlags flags) 201public void DrawText(string text, WindowsFont font, Rectangle bounds, Color foreColor, Color backColor, IntTextFormatFlags flags) 538public static Rectangle AdjustForVerticalAlignment(HandleRef hdc, string text, Rectangle bounds, IntTextFormatFlags flags, IntNativeMethods.DRAWTEXTPARAMS dtparams) 561Rectangle adjustedBounds = bounds; 578public void DrawRectangle(WindowsPen pen, Rectangle rect) 616public void FillRectangle(WindowsBrush brush, Rectangle rect)
misc\GDI\WindowsRegion.cs (3)
55public WindowsRegion(Rectangle rect) { 133private void CreateRegion(Rectangle rect) { 189public Rectangle ToRectangle() {
winforms\Managed\System\WinForms\AccessibleObject.cs (5)
105public virtual Rectangle Bounds { 123return Rectangle.Empty; 647internal virtual Rectangle BoundingRectangle { 1362Rectangle bounds = this.Bounds; 1378Rectangle bounds = child.Bounds;
winforms\Managed\System\WinForms\ArrangedElement.cs (10)
20private Rectangle bounds = Rectangle.Empty; 40public Rectangle Bounds { 62public virtual Rectangle DisplayRectangle { 64Rectangle displayRectangle = this.Bounds; 155protected virtual void OnBoundsChanged(Rectangle oldBounds, Rectangle newBounds) { 159public void SetBounds(Rectangle bounds, BoundsSpecified specified) { 166protected virtual void SetBoundsCore(Rectangle bounds, BoundsSpecified specified) { 168Rectangle oldBounds = this.bounds;
winforms\Managed\System\WinForms\AxHost.cs (7)
1399new public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) 1542protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 1546private void SetObjectRects(Rectangle bounds) { 1576Rectangle oldBounds = Bounds; 1772Rectangle b = Bounds; 4613private static NativeMethods.COMRECT FillInRect(NativeMethods.COMRECT dest, Rectangle source) {
winforms\Managed\System\WinForms\ButtonBase.cs (3)
562internal virtual Rectangle OverChangeRectangle { 592internal virtual Rectangle DownChangeRectangle { 874Rectangle r = ClientRectangle;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (38)
146internal static void DrawDitheredFill(Graphics g, Color color1, Color color2, Rectangle bounds) { 152protected void Draw3DBorder(Graphics g, Rectangle bounds, ColorData colors, bool raised) { 172private void Draw3DBorderHighContrastRaised(Graphics g, ref Rectangle bounds, ColorData colors) { 269private void Draw3DBorderNormal(Graphics g, ref Rectangle bounds, ColorData colors) { 336private void Draw3DBorderRaised(Graphics g, ref Rectangle bounds, ColorData colors) { 442protected internal static void Draw3DLiteBorder(Graphics g, Rectangle r, ColorData colors, bool up) { 477internal static void DrawFlatBorder(Graphics g, Rectangle r, Color c) { 488internal static void DrawFlatBorderWithSize(Graphics g, Rectangle r, Color c, int size) { 527internal static void DrawFlatFocus(Graphics g, Rectangle r, Color c) { 541void DrawFocus(Graphics g, Rectangle r) { 558internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) { 562Rectangle bounds = new Rectangle(buttonBorderSize, buttonBorderSize, this.Control.Width - (2 * buttonBorderSize), this.Control.Height - (2 * buttonBorderSize)); 597internal static void DrawDefaultBorder(Graphics g, Rectangle r, Color c, bool isDefault) { 620Rectangle r = layout.textBounds; 684internal static void PaintButtonBackground(WindowsGraphics wg, Rectangle bounds, WindowsBrush background) { 688internal void PaintButtonBackground(PaintEventArgs e, Rectangle bounds, Brush background) { 705Rectangle maxFocus = layout.focus; 874internal Rectangle client; 1111layout.face = Rectangle.Inflate(layout.client, -fullBorderSize, -fullBorderSize); 1130Rectangle textAdjusted = new Rectangle(layout.textBounds.X - 1, layout.textBounds.Y - 1, 1133layout.focus = Rectangle.Union(textAdjusted, layout.imageBounds); 1200Rectangle field = Rectangle.Inflate(layout.face, -paddingSize, -paddingSize); 1309Rectangle maxBounds = Rectangle.Inflate(layout.field, -textImageInset, -textImageInset); 1332Rectangle maxCombinedBounds = maxBounds; 1337Rectangle combinedBounds = LayoutUtils.Align(combinedSize, maxCombinedBounds, ContentAlignment.MiddleCenter); 1395layout.textBounds = Rectangle.Intersect(layout.textBounds, layout.field); 1406layout.imageBounds = Rectangle.Intersect(layout.imageBounds, layout.field); 1485internal Rectangle client; 1486internal Rectangle face; 1487internal Rectangle checkArea; 1488internal Rectangle checkBounds; 1489internal Rectangle textBounds; 1490internal Rectangle field; 1491internal Rectangle focus; 1492internal Rectangle imageBounds; 1507internal static LayoutOptions CommonLayout(Rectangle clientRectangle, Padding padding, bool isDefault, Font font, string text, bool enabled, ContentAlignment textAlign, RightToLeft rtl)
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (6)
25private void PaintBackground(PaintEventArgs e, Rectangle r, Color backColor) { 26Rectangle rect = r; 49Rectangle r = Control.ClientRectangle; 130Rectangle r = Control.ClientRectangle; 209Rectangle r = Control.ClientRectangle; 287internal static LayoutOptions PaintFlatLayout(Graphics g, bool up, bool check, int borderSize, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (4)
30Rectangle r = Control.ClientRectangle; 70Rectangle r = Control.ClientRectangle; 131Rectangle r = Control.ClientRectangle; 159internal static LayoutOptions PaintPopupLayout(Graphics g, bool up, int paintedBorder, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (3)
62private void PaintThemedButtonBackground(PaintEventArgs e, Rectangle bounds, bool up) { 160Rectangle bounds = Control.ClientRectangle; 203Rectangle r = Control.ClientRectangle;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (8)
44Rectangle bounds = layout.checkBounds; 85internal static void DrawCheckBackground(bool controlEnabled, CheckState controlCheckState, Graphics g, Rectangle bounds, Color checkColor, Color checkBackground, bool disabledColors, ColorData colors) 115protected void DrawCheckBackground(PaintEventArgs e, Rectangle bounds, Color checkColor, Color checkBackground, bool disabledColors, ColorData colors) { 144Rectangle fullSize = layout.checkBounds; 173internal static Rectangle DrawPopupBorder(Graphics g, Rectangle r, ColorData colors) { 240private static Bitmap GetCheckBoxImage(Color checkColor, Rectangle fullSize, ref Color cacheCheckColor, ref Bitmap cacheCheckImage) 283layout.focus = Control.AutoSize ? Rectangle.Inflate(layout.checkBounds, -2, -2) : layout.field;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (1)
117internal static LayoutOptions PaintPopupLayout(Graphics g, bool show3D, int checkSize, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (6)
34protected void DrawCheckBackground3DLite(PaintEventArgs e, Rectangle bounds, Color checkColor, Color checkBackground, ColorData colors, bool disabledColors) { 61protected void DrawCheckBackgroundFlat(PaintEventArgs e, Rectangle bounds, Color borderColor, Color checkBackground) { 97 private static void DrawAndFillEllipse(WindowsGraphics wg, WindowsPen borderPen, WindowsBrush fieldBrush, Rectangle bounds) 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)); 180Rectangle check = layout.checkBounds;
winforms\Managed\System\WinForms\ButtonRenderer.cs (20)
82public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) { 95public static void DrawButton(Graphics g, Rectangle bounds, PushButtonState state) { 114internal static void DrawButtonForHandle(Graphics g, Rectangle bounds, bool focused, PushButtonState state, IntPtr handle) { 115Rectangle contentBounds; 125contentBounds = Rectangle.Inflate(bounds, -3, -3); 139public static void DrawButton(Graphics g, Rectangle bounds, bool focused, PushButtonState state) { 149public static void DrawButton(Graphics g, Rectangle bounds, string buttonText, Font font, bool focused, PushButtonState state) { 162public static void DrawButton(Graphics g, Rectangle bounds, string buttonText, Font font, TextFormatFlags flags, bool focused, PushButtonState state) { 163Rectangle contentBounds; 175contentBounds = Rectangle.Inflate(bounds, -3, -3); 192public static void DrawButton(Graphics g, Rectangle bounds, Image image, Rectangle imageBounds, bool focused, PushButtonState state) { 193Rectangle contentBounds; 205contentBounds = Rectangle.Inflate(bounds, -3, -3); 219public static void DrawButton(Graphics g, Rectangle bounds, string buttonText, Font font, Image image, Rectangle imageBounds, bool focused, PushButtonState state) { 231public static void DrawButton(Graphics g, Rectangle bounds, string buttonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, PushButtonState state) { 232Rectangle contentBounds; 246contentBounds = Rectangle.Inflate(bounds, -3, -3);
winforms\Managed\System\WinForms\CheckBox.cs (2)
389internal override Rectangle OverChangeRectangle { 412internal override Rectangle DownChangeRectangle {
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (11)
85public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) { 104Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 128public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, bool focused, CheckBoxState state) { 140public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state) { 144internal static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state, IntPtr hWnd) { 145Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 178public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) { 190public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) { 191Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state));
winforms\Managed\System\WinForms\CheckedListBox.cs (8)
658Rectangle bounds = e.Bounds; 694Rectangle box = new Rectangle(bounds.X + scaledListItemStartPosition, 720Rectangle textBounds = new Rectangle( 766Rectangle stringBounds = new Rectangle( 847Rectangle bounds = e.Bounds; 848Rectangle emptyRectangle = new Rectangle( 1665public override Rectangle Bounds { 1667Rectangle rect = ParentCheckedListBox.GetItemRectangle(index);
winforms\Managed\System\WinForms\ComboBox.cs (22)
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); 2136internal override Rectangle ApplyBoundsConstraints(int suggestedX, int suggestedY, int proposedWidth, int proposedHeight) { 3612OnDrawItem(new DrawItemEventArgs(g, Font, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), 3725Rectangle ClientRect = new Rectangle(r.left, r.top, r.right - r.left, r.bottom - r.top); 3767Rectangle updateRegionBoundingRect = wr.ToRectangle(); 4611public override Rectangle Bounds { 4616var parentRect = listAccessibleObject.BoundingRectangle; 5413public override Rectangle Bounds { 5581public override Rectangle Bounds { 5910Rectangle outerBorder; 5911Rectangle innerBorder; 5912Rectangle innerInnerBorder; 5913internal Rectangle dropDownRect; 5914Rectangle whiteFillRect; 5915Rectangle clientRect; 6059protected virtual void DrawFlatComboDropDown(ComboBox comboBox, Graphics g, Rectangle dropDownRect) { 6100public void ValidateOwnerDrawRegions(ComboBox comboBox, Rectangle updateRegionBox) { 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\ComboBoxRenderer.cs (12)
47private static void DrawBackground(Graphics g, Rectangle bounds, ComboBoxState state) { 54Rectangle fillRect = visualStyleRenderer.GetBackgroundContentRectangle(g, bounds); 71public static void DrawTextBox(Graphics g, Rectangle bounds, ComboBoxState state) { 88public static void DrawTextBox(Graphics g, Rectangle bounds, string comboBoxText, Font font, ComboBoxState state) { 98public static void DrawTextBox(Graphics g, Rectangle bounds, string comboBoxText, Font font, Rectangle textBounds, ComboBoxState state) { 108public static void DrawTextBox(Graphics g, Rectangle bounds, string comboBoxText, Font font, TextFormatFlags flags, ComboBoxState state) { 116Rectangle textBounds = visualStyleRenderer.GetBackgroundContentRectangle(g, bounds); 130public static void DrawTextBox(Graphics g, Rectangle bounds, string comboBoxText, Font font, Rectangle textBounds, TextFormatFlags flags, ComboBoxState state) { 152public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state) { 166internal static void DrawDropDownButtonForHandle(Graphics g, Rectangle bounds, ComboBoxState state, IntPtr handle) {
winforms\Managed\System\WinForms\CommonDialog.cs (1)
179Rectangle screen = Screen.GetWorkingArea(Control.MousePosition);
winforms\Managed\System\WinForms\ContainerControl.cs (1)
712internal override Rectangle GetToolNativeScreenRectangle() {
winforms\Managed\System\WinForms\ContextMenuStrip.cs (2)
102Rectangle bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.AboveLeft); 103Rectangle screenBounds = Screen.FromRectangle(bounds).Bounds;
winforms\Managed\System\WinForms\Control.cs (60)
1370public Rectangle Bounds { 1595public Rectangle ClientRectangle { 2282public virtual Rectangle DisplayRectangle { 3001working = new Region(Rectangle.FromLTRB(temp.left, temp.top, temp.right, temp.bottom)); 3019Rectangle current = Rectangle.FromLTRB(temp.left, temp.top, temp.right, temp.bottom); 5787Rectangle originalBounds; 5806Rectangle parentClient = parent.ClientRectangle; 6151public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) { 6451internal virtual Rectangle ApplyBoundsConstraints(int suggestedX, int suggestedY, int proposedWidth, int proposedHeight) { 6458Rectangle newBounds = new Rectangle(suggestedX, suggestedY, 0,0); 6583protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 7238Rectangle bounds = Rectangle.Empty; 7242bounds = Rectangle.Ceiling(region.GetBounds(graphics)); 7296public void Invalidate(Rectangle rc) { 7307public void Invalidate(Rectangle rc, bool invalidateChildren) { 7917protected virtual void NotifyInvalidate(Rectangle invalidatedArea) { 9416Rectangle cliprect = e.InvalidRect; 9419cliprect = Rectangle.Intersect(this.ClientRectangle, cliprect); 9587internal void PaintBackground(PaintEventArgs e, Rectangle rectangle) { 9591internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor) { 9595internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset) { 9634private static void PaintBackColor(PaintEventArgs e, Rectangle rectangle, Color backColor) { 9737Rectangle clientRectangle = ClientRectangle; 9738Rectangle rectangle = clientRectangle; 9756internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle) { 9767internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion) { 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); 10370internal virtual void PrintToMetaFileRecursive(HandleRef hDC, IntPtr lParam, Rectangle bounds) { 10383Rectangle clientBounds = new Rectangle(clientOffset, ClientSize); 11053public Rectangle RectangleToClient(Rectangle r) { 11063return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 11070public Rectangle RectangleToScreen(Rectangle r) { 11080return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 11494Rectangle rawScaledBounds = GetScaledBounds(Bounds, factor, specified); 11874Rectangle adjustedBounds = ApplyBoundsConstraints(x,y, width, height); 12966using (PaintEventArgs pevent = new PaintEventArgs(dc, Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom))) { 13660Rectangle clip; 14497void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) { 16091Rectangle IKeyboardToolTip.GetNativeScreenRectangle() { 16095IList<Rectangle> IKeyboardToolTip.GetNeighboringToolsRectangles() { 16156private IList<Rectangle> GetOwnNeighboringToolsRectangles() { 16168List<Rectangle> neighboringControlsRectangles = new List<Rectangle>(4); 16178return new Rectangle[0]; 16192internal virtual Rectangle GetToolNativeScreenRectangle() { 16195return Rectangle.FromLTRB(rectangle.left, rectangle.top, rectangle.right, rectangle.bottom); 18261Rectangle bounds = control.Bounds; 18344Rectangle posRect = Rectangle.FromLTRB(lprcPosRect.left, lprcPosRect.top, lprcPosRect.right, lprcPosRect.bottom); 18390Rectangle clipRect = Rectangle.FromLTRB(lprcClipRect.left, lprcClipRect.top, lprcClipRect.right, lprcClipRect.bottom); 18392Rectangle intersect; 18398intersect = Rectangle.Intersect(posRect, clipRect); 20331internal PrintPaintEventArgs(Message m, IntPtr dc, Rectangle clipRect)
winforms\Managed\System\WinForms\ControlPaint.cs (56)
74internal static Rectangle CalculateBackgroundImageRectangle(Rectangle bounds, Image backgroundImage, ImageLayout imageLayout) { 76Rectangle result = bounds; 428internal static void PrintBorder(Graphics graphics, Rectangle bounds, BorderStyle style, Border3DStyle b3dStyle) { 446internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect) { 449internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset) { 453internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft) { 476Rectangle imageRectangle = CalculateBackgroundImageRectangle(bounds, backgroundImage, backgroundImageLayout); 500Rectangle imageRect = imageRectangle; 502Rectangle partOfImageToDraw = new Rectangle(Point.Empty, imageRect.Size); 507Rectangle imageRect = imageRectangle; 509Rectangle partOfImageToDraw = new Rectangle(new Point(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y) 533public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) { 561public static void DrawBorder(Graphics graphics, Rectangle bounds, 895public static void DrawBorder3D(Graphics graphics, Rectangle rectangle) { 905public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style) { 916public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style, Border3DSide sides) { 982private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) { 1083private static void DrawBorderSimple(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) { 1111public static void DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state) { 1128public static void DrawCaptionButton(Graphics graphics, Rectangle rectangle, CaptionButton button, ButtonState state) { 1146public static void DrawCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) { 1169public static void DrawComboButton(Graphics graphics, Rectangle rectangle, ButtonState state) { 1186public static void DrawContainerGrabHandle(Graphics graphics, Rectangle bounds) { 1232private static void DrawFlatCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) { 1254private static void DrawFlatCheckBox(Graphics graphics, Rectangle rectangle, Color foreground, Brush background, ButtonState state) { 1262Rectangle offsetRectangle = new Rectangle(rectangle.X + 1, rectangle.Y + 1, 1312public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle) { 1321public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color foreColor, Color backColor) { 1325internal static void DrawHighContrastFocusRectangle(Graphics graphics, Rectangle rectangle, Color color) { 1329private static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color color, bool highContrast) { 1395public static void DrawGrabHandle(Graphics graphics, Rectangle rectangle, bool primary, bool enabled) { 1436Rectangle fillRect = new Rectangle(rectangle.X + 1, rectangle.Y + 1, rectangle.Width - 1, rectangle.Height - 1); 1447public static void DrawGrid(Graphics graphics, Rectangle area, Size pixelsBetweenDots, Color backColor) { 1500internal static void DrawImageColorized(Graphics graphics, Image image, Rectangle destination, 1515internal static void DrawImageReplaceColor(Graphics g, Image image, Rectangle dest, Color oldColor, Color newColor) { 1529private static void DrawImageColorized(Graphics graphics, Image image, Rectangle destination, 1553internal static void DrawImageDisabled(Graphics graphics, Image image, Rectangle imageBounds, Color background, bool unscaledImage) { 1663public static void DrawLockedFrame(Graphics graphics, Rectangle rectangle, bool primary) { 1695public static void DrawMenuGlyph(Graphics graphics, Rectangle rectangle, MenuGlyph glyph) { 1704public static void DrawMenuGlyph(Graphics graphics, Rectangle rectangle, MenuGlyph glyph, Color foreColor, Color backColor) 1732public static void DrawMixedCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) { 1749public static void DrawRadioButton(Graphics graphics, Rectangle rectangle, ButtonState state) { 1770public static void DrawReversibleFrame(Rectangle rectangle, Color backColor, FrameStyle style) { 1848public static void DrawScrollButton(Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state) { 1866public static void DrawSelectionFrame(Graphics graphics, bool active, Rectangle outsideRect, Rectangle insideRect, Color backColor) { 1890public static void DrawSizeGrip(Graphics graphics, Color backColor, Rectangle bounds) { 1957Color color, Rectangle layoutRectangle, 1982public static void DrawVisualStyleBorder(Graphics graphics, Rectangle bounds) { 1999public static void FillReversibleRectangle(Rectangle rectangle, Color backColor) { 2411internal static void PaintTableControlBorder(TableLayoutPanelCellBorderStyle borderStyle, Graphics g, Rectangle bound) { 2446internal static void PaintTableCellBorder(TableLayoutPanelCellBorderStyle borderStyle, Graphics g, Rectangle bound) {
winforms\Managed\System\WinForms\Cursor.cs (10)
161/// sets a <see cref='System.Drawing.Rectangle'/> that represents the current clipping rectangle for this <see cref='System.Windows.Forms.Cursor'/> in 165public static Rectangle Clip { 181internal static Rectangle ClipInternal 186return Rectangle.FromLTRB(r.left, r.top, r.right, r.bottom); 413private void DrawImageCore(Graphics graphics, Rectangle imageRect, Rectangle targetRect, bool stretch) { 518public void Draw(Graphics g, Rectangle targetRect) { 519DrawImageCore(g, Rectangle.Empty, targetRect, false); 526public void DrawStretched(Graphics g, Rectangle targetRect) { 527DrawImageCore(g, Rectangle.Empty, targetRect, true);
winforms\Managed\System\WinForms\DataGrid.cs (127)
1330Rectangle backButton = this.Caption.GetBackButtonRect(this.layout.Caption, alignRight, detailsButtonWidth); 1331Rectangle detailsButton = this.Caption.GetDetailsButtonRect(this.layout.Caption, alignRight); 1787internal Rectangle ParentRowsBounds { 2259Rectangle scroll = layout.Data; 2261scroll = Rectangle.Union(scroll, layout.ColumnHeaders); 3039Rectangle bounds = GetCellBounds(rowIndex, columnIndex); 4060Rectangle captionRect = layout.Caption; 4301Rectangle captionRect = layout.Caption; 4422Rectangle gridRect = layout.Data; 4424gridRect = Rectangle.Union(gridRect, layout.RowHeaders); 4426gridRect = Rectangle.Union(gridRect, layout.ColumnHeaders); 4474Rectangle right; 4475Rectangle bottom; 4476Rectangle oldClientRectangle = layout.ClientRectangle; 4487Rectangle newClientRectangle = this.ClientRectangle; 4521Rectangle refresh = new Rectangle(); 4701private Rectangle CalcRowResizeFeedbackRect(MouseEventArgs e) { 4702Rectangle inside = layout.Data; 4703Rectangle r = new Rectangle(inside.X, e.Y, inside.Width, 3); 4709private Rectangle CalcColResizeFeedbackRect(MouseEventArgs e) { 4710Rectangle inside = layout.Data; 4711Rectangle r = new Rectangle(e.X, inside.Y, 3, inside.Height); 4840Invalidate(Rectangle.Union(layout.Data, layout.ColumnHeaders)); 4845Rectangle rightArea = layout.Data; 4847rightArea = Rectangle.Union(rightArea, layout.ColumnHeaders); 4889Rectangle clip = Rectangle.Union(layout.ColumnHeaders, layout.Data); 4988Invalidate(Rectangle.Union(this.layout.Data, this.layout.ColumnHeaders)); 4991Rectangle rightArea = Rectangle.Union(layout.ColumnHeaders, layout.Data); 5000Cursor.ClipInternal = Rectangle.Empty; 5073Rectangle rightArea = layout.Data; 5075rightArea = Rectangle.Union(rightArea, layout.RowHeaders); 5100Rectangle clip = Rectangle.Union(layout.RowHeaders, layout.Data); 5147Rectangle rightArea = Rectangle.Union(layout.RowHeaders, layout.Data); 5155Cursor.ClipInternal = Rectangle.Empty; 5327Rectangle oldResizeRect = this.layout.ResizeBoxRect; 5345Rectangle inside = newLayout.Inside; 5349Rectangle insideLeft = inside; 5354Rectangle cap = newLayout.Caption; 5363newLayout.Caption = Rectangle.Empty; 5368Rectangle parents = newLayout.ParentRows; 5378newLayout.ParentRows = Rectangle.Empty; 5385Rectangle colHeaders = newLayout.ColumnHeaders; 5394newLayout.ColumnHeaders = Rectangle.Empty; 5401Rectangle rowHeaders = newLayout.RowHeaders; 5419Rectangle topLeft = newLayout.TopLeftHeader; 5420Rectangle colHeaders = newLayout.ColumnHeaders; 5440newLayout.TopLeftHeader = Rectangle.Empty; 5444newLayout.RowHeaders = Rectangle.Empty; 5445newLayout.TopLeftHeader = Rectangle.Empty; 5639Rectangle data = layout.Data; 5755private NativeMethods.RECT[] CreateScrollableRegion(Rectangle scroll) { 5769Rectangle rowExclude = localGridRows[r].GetNonScrollableArea(); 5836Rectangle r = CalcColResizeFeedbackRect(e); 5846Rectangle r = CalcRowResizeFeedbackRect(e); 5854private void DrawSplitBar(Rectangle r) 5921Rectangle cellBounds = Rectangle.Empty; 6029internal protected virtual void ColumnStartedEditing(Rectangle bounds) { 6037Rectangle editBounds = this.GetCellBounds(this.currentRow, this.currentCol); 6195Rectangle inside = layout.Data; 6284Rectangle inside = layout.Data; 6302internal Rectangle GetRowHeaderRect() { 6306internal Rectangle GetColumnHeadersRect() { 6314private Rectangle GetRowRect(int rowNumber) { 6315Rectangle inside = layout.Data; 6323Rectangle rowRect = new Rectangle(inside.X, 6335return Rectangle.Empty; 6418public Rectangle GetCurrentCellBounds() { 6427public Rectangle GetCellBounds(int row, int col) { 6429Rectangle cellBounds = localGridRows[row].GetCellBounds(col); 6440public Rectangle GetCellBounds(DataGridCell dgc) { 6447internal Rectangle GetRowBounds(DataGridRow row) { 6448Rectangle rowBounds = new Rectangle(); 6580internal void InvalidateCaptionRect(Rectangle r) { 6599Rectangle columnArea = new Rectangle(); 6628internal void InvalidateParentRowsRect(Rectangle r) { 6629Rectangle parentRowsRect = layout.ParentRows; 6641Rectangle rowRect = GetRowRect(rowNumber); 6653Rectangle invalid = new Rectangle(); 6665internal void InvalidateRowRect(int rowNumber, Rectangle r) { 6666Rectangle rowRect = GetRowRect(rowNumber); 6669Rectangle inner = new Rectangle(rowRect.X + r.X, rowRect.Y + r.Y, r.Width, r.Height); 6807Rectangle data = layout.Data; 7121Rectangle boundingRect = layout.ColumnHeaders; 7143private int PaintColumnHeaderText(Graphics g, Rectangle boundingRect) { 7145Rectangle textBounds = boundingRect; 7244Rectangle triBounds = new Rectangle(alignRight ? textBounds.X - textBounds.Height : textBounds.Right, 7288private void PaintBorder(Graphics g, Rectangle bounds) 7320private void PaintGrid(Graphics g, Rectangle gridBounds) { 7323Rectangle rc = gridBounds; 7391private void PaintRows(Graphics g, ref Rectangle boundingRect) { 7394Rectangle rowBounds = boundingRect; 7395Rectangle dataBounds = Rectangle.Empty; 7397Rectangle headerBounds = Rectangle.Empty; 8182Rectangle rowHdrRect = GetRowRect(this.currentRow); 8625Rectangle rowsRect = layout.Data; 8627rowsRect = Rectangle.Union(rowsRect, layout.RowHeaders); 8846Rectangle parentRowsRect = layout.ParentRows; 8847Rectangle underParentRows = layout.Data; 8891Rectangle fixupRect = vertScrollBar.Bounds; 9231public Rectangle Inside = Rectangle.Empty; 9233public Rectangle RowHeaders = Rectangle.Empty; 9235public Rectangle TopLeftHeader = Rectangle.Empty; 9236public Rectangle ColumnHeaders = Rectangle.Empty; 9237public Rectangle Data = Rectangle.Empty; 9239public Rectangle Caption = Rectangle.Empty; 9240public Rectangle ParentRows = Rectangle.Empty; 9242public Rectangle ResizeBoxRect = Rectangle.Empty; 9250public Rectangle ClientRectangle = Rectangle.Empty; 9521private int MirrorRectangle(Rectangle R1, Rectangle rect, bool rightToLeft) 9534private int MirrorPoint(int x, Rectangle rect, bool rightToLeft)
winforms\Managed\System\WinForms\DataGridAddNewRow.cs (8)
64internal override void LoseChildFocus(Rectangle rowHeader, bool alignToRight) 70internal override bool ProcessTabKey(Keys keyData, Rectangle rowHeaders, bool alignToRight) 78public override int Paint(Graphics g, Rectangle bounds, Rectangle trueRowBounds, int firstVisibleColumn, int columnCount) 84Rectangle bounds, 85Rectangle trueRowBounds, 89Rectangle dataBounds = bounds; 104protected override void PaintCellContents(Graphics g, Rectangle cellBounds, DataGridColumnStyle column,
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (11)
154private Rectangle GetCheckBoxBounds(Rectangle bounds, bool alignToRight) { 280Rectangle bounds, 357/// <see cref='System.Drawing.Rectangle'/> and row number.</para> 359protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum) 368/// with the given <see cref='System.Drawing.Graphics'/>, <see cref='System.Drawing.Rectangle'/>, 371protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight) { 377/// <para>Draws the <see cref='System.Windows.Forms.DataGridBoolColumn'/> with the given <see cref='System.Drawing.Graphics'/>, <see cref='System.Drawing.Rectangle'/>, 380protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, 389Rectangle box = GetCheckBoxBounds(bounds, alignToRight); 505this.DataGridTableStyle.DataGrid.ColumnStartedEditing(Rectangle.Empty);
winforms\Managed\System\WinForms\DataGridCaption.cs (16)
68private Rectangle backButtonRect = new Rectangle(); 69private Rectangle downButtonRect = new Rectangle(); 70private Rectangle textRect = new Rectangle(); 342private void InvalidateCaptionRect(Rectangle r) { 348Rectangle r; 428internal Rectangle GetBackButtonRect(Rectangle bounds, bool alignRight, int downButtonWidth) { 449internal Rectangle GetDetailsButtonRect(Rectangle bounds, bool alignRight) { 466internal void Paint(Graphics g, Rectangle bounds, bool alignRight) { 535private void PaintIcon(Graphics g, Rectangle bounds, Bitmap b) { 542private void PaintBackButton(Graphics g, Rectangle bounds, bool alignRight) { 549private void PaintDownButton(Graphics g, Rectangle bounds) { 556private void PaintText(Graphics g, Rectangle bounds, bool alignToRight) { 557Rectangle textBounds = bounds; 568Rectangle border = textBounds;
winforms\Managed\System\WinForms\DataGridColumn.cs (14)
982Rectangle bounds, 990/// cell for editing, passing the specified <see cref='System.Data.DataView'/>, row number, <see cref='System.Drawing.Rectangle'/>, argument 998Rectangle bounds, 1012Rectangle bounds, 1066/// <see cref='System.Drawing.Rectangle'/>, System.Windows.Forms.CurrencyManager, and row number.</para> 1070protected internal abstract void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum); 1075/// paints a <see cref='System.Windows.Forms.DataGridColumnStyle'/> with the specified <see cref='System.Drawing.Graphics'/>, <see cref='System.Drawing.Rectangle'/>, see Rectangle, row number, and 1080protected internal abstract void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight); 1085/// Paints a <see cref='System.Windows.Forms.DataGridColumnStyle'/> with the specified <see cref='System.Drawing.Graphics'/>, <see cref='System.Drawing.Rectangle'/>, see System.Data.DataView, row number, background color, foreground color, and alignment. 1090protected internal virtual void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, 1211public override Rectangle Bounds { 1216return Rectangle.Empty; 1220return Rectangle.Empty; 1231Rectangle rect = dg.GetCellBounds(0, offset);
winforms\Managed\System\WinForms\DataGridParentRows.cs (36)
143internal Rectangle GetBoundsForDataGridStateAccesibility(DataGridState dgs) { 144Rectangle ret = Rectangle.Empty; 323internal void InvalidateRect(Rectangle rect) 327Rectangle r = new Rectangle(rect.X, rect.Y, rect.Width + borderWidth, rect.Height + borderWidth); 532internal void OnResize(Rectangle oldBounds) { 540internal void Paint(Graphics g, Rectangle visualbounds, bool alignRight) { 541Rectangle bounds = visualbounds; 551private void PaintBorder(Graphics g, Rectangle bounds) { 552Rectangle border = bounds; 661private void ComputeLayout(Rectangle bounds, int tableNameBoxWidth, int[] colsNameWidths, int[] colsDataWidths) { 670layout.leftArrow = Rectangle.Empty; 671layout.rightArrow = Rectangle.Empty; 675private void PaintParentRows(Graphics g, Rectangle bounds, bool alignToRight) { 716Rectangle rowBounds = layout.data; 771private void PaintBitmap(Graphics g, Bitmap b, Rectangle bounds) 776Rectangle bmpRect = new Rectangle(bmpX, bmpY, b.Width, b.Height); 794private void PaintDownButton(Graphics g, Rectangle bounds) 802private void PaintLeftArrow(Graphics g, Rectangle bounds, bool alignToRight) 831private void PaintRightArrow(Graphics g, Rectangle bounds, bool alignToRight) 860private int PaintRow(Graphics g, Rectangle bounds, int row, Font font, bool alignToRight, 863Rectangle paintBounds = bounds; 864Rectangle rowBounds = bounds; 905private int PaintColumns(Graphics g, Rectangle bounds, DataGridState dgs, Font font, bool alignToRight, 907Rectangle paintBounds = bounds; 908Rectangle rowBounds = bounds; 987private int PaintText(Graphics g, Rectangle textBounds, string text, Font font, bool bold, bool alignToRight) { 1017private int MirrorRect(Rectangle surroundingRect, Rectangle containedRect, bool alignToRight) { 1026public Rectangle data; 1027public Rectangle leftArrow; 1028public Rectangle rightArrow; 1031data = Rectangle.Empty; 1032leftArrow = Rectangle.Empty; 1033rightArrow = Rectangle.Empty; 1066public override Rectangle Bounds {
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (54)
197public override Rectangle GetCellBounds(int col) { 198Rectangle cellBounds = base.GetCellBounds(col); 211private Rectangle GetOutlineRect(int xOrigin, int yOrigin) { 212Rectangle outline = new Rectangle(xOrigin + 2, 219public override Rectangle GetNonScrollableArea() { 224return Rectangle.Empty; 227private Rectangle GetRelationshipRect() { 229Rectangle ret = this.dgTable.RelationshipRect; 268private Rectangle GetRelationshipRectWithMirroring() { 269Rectangle relRect = GetRelationshipRect(); 285private bool PointOverPlusMinusGlyph(int x, int y, Rectangle rowHeaders, bool alignToRight) { 288Rectangle insideRowHeaders = rowHeaders; 293Rectangle outline = GetOutlineRect(insideRowHeaders.Right - expandoBoxWidth, 0); 300public override bool OnMouseDown(int x, int y, Rectangle rowHeaders, bool alignToRight) { 322Rectangle relRect = GetRelationshipRectWithMirroring(); 338public override bool OnMouseMove(int x, int y, Rectangle rowHeaders, bool alignToRight) { 342Rectangle relRect = GetRelationshipRectWithMirroring(); 355public override void OnMouseLeft(Rectangle rowHeaders, bool alignToRight) { 359Rectangle relRect = GetRelationshipRect(); 431internal override void LoseChildFocus(Rectangle rowHeaders, bool alignToRight) { 437Rectangle relRect = GetRelationshipRect(); 453internal override bool ProcessTabKey(Keys keyData, Rectangle rowHeaders, bool alignToRight) { 478Rectangle relRect = GetRelationshipRect(); 503Rectangle relRect = GetRelationshipRect(); 517public override int Paint(Graphics g, Rectangle bounds, Rectangle trueRowBounds, int firstVisibleColumn, int numVisibleColumns) { 522Rectangle bounds, // negative offsetted row bounds 523Rectangle trueRowBounds, // real row bounds. 531Rectangle dataBounds = bounds; 542Rectangle relationBounds = new Rectangle(trueRowBounds.X, 556protected override void PaintCellContents(Graphics g, Rectangle cellBounds, DataGridColumnStyle column, 563Rectangle bounds = cellBounds; 570Rectangle errRect; 585public override void PaintHeader(Graphics g, Rectangle bounds, bool alignToRight, bool isDirty) { 589Rectangle insideBounds = bounds; 602public void PaintHeaderInside(Graphics g, Rectangle bounds, Brush backBr, bool alignToRight, bool isDirty) { 611Rectangle rowHeaderBounds = new Rectangle(rowHeaderBoundsX, 623Rectangle expandoBox = new Rectangle(expandoBoxX, 637private void PaintRelations(Graphics g, Rectangle bounds, Rectangle trueRowBounds, 642Rectangle relRect = GetRelationshipRect(); 705private int PaintRelationText(Graphics g, Rectangle bounds, bool alignToRight) { 709Rectangle textBounds = new Rectangle(bounds.X, bounds.Y + System.Windows.Forms.DataGridTableStyle.relationshipSpacing, 747private void PaintPlusMinusGlyph(Graphics g, Rectangle bounds, Brush backBr, bool alignToRight) { 749Rectangle outline = GetOutlineRect(bounds.X, bounds.Y); 751outline = Rectangle.Intersect(bounds, outline); 789Rectangle relRect = GetRelationshipRect(); 804private int MirrorRelationshipRectangle(Rectangle relRect, Rectangle rowHeader, bool alignToRight) { 814private int MirrorRectangle(int x, int width, Rectangle rect, bool alignToRight) { 902public override Rectangle Bounds { 904Rectangle rowBounds = DataGrid.GetRowBounds(owner); 906Rectangle bounds = owner.Expanded ? owner.GetRelationshipRectWithMirroring() : Rectangle.Empty;
winforms\Managed\System\WinForms\DataGridRow.cs (39)
232/// <para>When overridden in a derived class, gets the <see cref='System.Drawing.Rectangle'/> 235public virtual Rectangle GetCellBounds(int col) { 238Rectangle cellBounds = new Rectangle(); 256/// <para>When overridden in a derived class, gets the <see cref='System.Drawing.Rectangle'/> of the non-scrollable area of 259public virtual Rectangle GetNonScrollableArea() { 260return Rectangle.Empty; 321public virtual void InvalidateRowRect(Rectangle r) { 352/// specifed by the x and y coordinates and the specified <see cref='System.Drawing.Rectangle'/> 355public virtual bool OnMouseDown(int x, int y, Rectangle rowHeaders) 366public virtual bool OnMouseDown(int x, int y, Rectangle rowHeaders, bool alignToRight) { 379public virtual bool OnMouseMove(int x, int y, Rectangle rowHeaders) { 388public virtual bool OnMouseMove(int x, int y, Rectangle rowHeaders, bool alignToRight) { 395public virtual void OnMouseLeft(Rectangle rowHeaders, bool alignToRight) { 410internal abstract bool ProcessTabKey(Keys keyData, Rectangle rowHeaders, bool alignToRight); 413internal abstract void LoseChildFocus(Rectangle rowHeaders, bool alignToRight); 420Rectangle dataBounds, 421Rectangle rowBounds, 426Rectangle dataBounds, 427Rectangle rowBounds, 437protected virtual void PaintBottomBorder(Graphics g, Rectangle bounds, int dataWidth) 442protected virtual void PaintBottomBorder(Graphics g, Rectangle bounds, int dataWidth, int borderWidth, bool alignToRight) { 444Rectangle bottomBorder = new Rectangle(alignToRight ? bounds.Right - dataWidth : bounds.X, 466Rectangle bounds, 474Rectangle bounds, 480Rectangle cellBounds = bounds; 536protected virtual void PaintCellContents(Graphics g, Rectangle cellBounds, DataGridColumnStyle column, 542protected virtual void PaintCellContents(Graphics g, Rectangle cellBounds, DataGridColumnStyle column, 555protected Rectangle PaintIcon(Graphics g, Rectangle visualBounds, bool paintIcon, bool alignToRight, Bitmap bmp) { 559protected Rectangle PaintIcon(Graphics g, Rectangle visualBounds, bool paintIcon, bool alignToRight, Bitmap bmp, Brush backBrush) { 561Rectangle bmpRect = new Rectangle(alignToRight ? visualBounds.Right - xOffset - bmpSize.Width : visualBounds.X + xOffset, 581public virtual void PaintHeader(Graphics g, Rectangle visualBounds) { 586public virtual void PaintHeader(Graphics g, Rectangle visualBounds, bool alignToRight) { 590public virtual void PaintHeader(Graphics g, Rectangle visualBounds, bool alignToRight, bool rowIsDirty) { 591Rectangle bounds = visualBounds; 640Rectangle errRect; 757public override Rectangle Bounds { 917public override Rectangle Bounds {
winforms\Managed\System\WinForms\DataGridState.cs (2)
161public override Rectangle Bounds { 165Rectangle r = dataGridParentRows.GetBoundsForDataGridStateAccesibility(owner);
winforms\Managed\System\WinForms\DataGridTable.cs (5)
41private Rectangle relationshipRect = Rectangle.Empty; 898internal Rectangle RelationshipRect { 907private Rectangle ComputeRelationshipRect() { 937this.relationshipRect = Rectangle.Empty;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (11)
267edit.Bounds = Rectangle.Empty; 419edit.Bounds = Rectangle.Empty; 465Rectangle bounds, 471Rectangle originalBounds = bounds; 496edit.Bounds = Rectangle.Empty; 552protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum) { 562protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight) { 573protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, 584protected void PaintText(Graphics g, Rectangle bounds, string text, bool alignToRight) { 593protected void PaintText(Graphics g, Rectangle textBounds, string text, Brush backBrush, Brush foreBrush, bool alignToRight) { 599Rectangle rect = textBounds;
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
57public void AddToolTip(String toolTipString, IntPtr toolTipId, Rectangle iconBounds)
winforms\Managed\System\WinForms\DataGridView.cs (10)
321private Rectangle normalClientRectangle; 390private Rectangle resizeClipRectangle; 493this.layout.TopLeftHeader = Rectangle.Empty; 494this.layout.ColumnHeaders = Rectangle.Empty; 495this.layout.RowHeaders = Rectangle.Empty; 2690public override Rectangle DisplayRectangle { 2692Rectangle rectDisplay = this.ClientRectangle; 3409Rectangle rectTmp = this.layout.Data; 3413rectTmp = Rectangle.Union(rectTmp, this.layout.ColumnHeaders); 4814this.Invalidate(Rectangle.Union(this.layout.Data, this.layout.ColumnHeaders));
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (2)
424internal override Rectangle BoundingRectangle 502internal override Rectangle BoundingRectangle
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (29)
37private static Rectangle rectThemeMargins = new Rectangle(-1, -1, 0, 0); 214protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 223return Rectangle.Empty; 228Rectangle cellBounds; 232Rectangle contentBounds = PaintPrivate(graphics, 268protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 281return Rectangle.Empty; 286Rectangle cellBounds; 290Rectangle errorIconBounds = PaintPrivate(graphics, 339Rectangle borderWidthsRect = this.StdBorderWidths; 354Rectangle rectThemeMargins = DataGridViewButtonCell.GetThemeMargins(graphics); 442private static Rectangle GetThemeMargins(Graphics g) 446Rectangle rectCell = new Rectangle(0, 0, DATAGRIDVIEWBUTTONCELL_themeMargin, DATAGRIDVIEWBUTTONCELL_themeMargin); 447Rectangle rectContent = DataGridViewButtonCellRenderer.DataGridViewButtonRenderer.GetBackgroundContentRectangle(g, rectCell); 651Rectangle clipBounds, 652Rectangle cellBounds, 690private Rectangle PaintPrivate(Graphics g, 691Rectangle clipBounds, 692Rectangle cellBounds, 716Rectangle resultBounds; 727Rectangle valBounds = cellBounds; 728Rectangle borderWidths = BorderWidths(advancedBorderStyle); 755Rectangle errorBounds = valBounds; 924resultBounds = Rectangle.Empty; 930resultBounds = Rectangle.Empty; 944ControlPaint.DrawFocusRectangle(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, SystemColors.Control); 1054resultBounds = Rectangle.Empty; 1095public static void DrawButton(Graphics g, Rectangle bounds, int buttonState) 1098DataGridViewButtonRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
winforms\Managed\System\WinForms\DataGridViewCell.cs (49)
140public Rectangle ContentBounds 294public Rectangle ErrorIconBounds 772internal Rectangle StdBorderWidths 789return Rectangle.Empty; 1055protected virtual Rectangle BorderWidths(DataGridViewAdvancedBorderStyle advancedBorderStyle) 1057Rectangle rect = new Rectangle(); 1189out Rectangle cellBounds) 1247internal Rectangle ComputeErrorIconBounds(Rectangle cellValueBounds) 1252Rectangle bmpRect = new Rectangle(this.DataGridView.RightToLeftInternal ? 1262return Rectangle.Empty; 1776public Rectangle GetContentBounds(int rowIndex) 1780return Rectangle.Empty; 1790protected virtual Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 1792return Rectangle.Empty; 1827internal Rectangle GetErrorIconBounds(int rowIndex) 1838protected virtual Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 1840return Rectangle.Empty; 3149Rectangle contentBounds = GetContentBounds(g, dataGridViewCellStyle, rowIndex); 3491Rectangle clipBounds, 3492Rectangle cellBounds, 3505Rectangle clipBounds, 3506Rectangle cellBounds, 3541Rectangle clipBounds, 3542Rectangle bounds, 4298protected virtual void PaintErrorIcon(Graphics graphics, Rectangle clipBounds, Rectangle cellValueBounds, string errorText) 4309private static void PaintErrorIcon(Graphics graphics, Rectangle iconBounds) 4321internal void PaintErrorIcon(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex, Rectangle cellBounds, Rectangle cellValueBounds, string errorText) 4327Rectangle iconBounds = GetErrorIconBounds(graphics, cellStyle, rowIndex); 4348Rectangle bounds, 4353Rectangle rectPadding; 4387Rectangle clipBounds, 4388Rectangle cellBounds, 4491Rectangle cellBounds, 4492Rectangle cellClip, 4499Rectangle editingControlBounds = PositionEditingPanel(cellBounds, 4522public virtual Rectangle PositionEditingPanel(Rectangle cellBounds, 4523Rectangle cellClip, 4544Rectangle borderAndPaddingWidths = BorderWidths(dgvabsEffective); 4758public override Rectangle Bounds 4921Rectangle cellBounds; 5081internal Rectangle GetAccessibleObjectBounds(AccessibleObject parentAccObject) 5090return Rectangle.Empty; 5094Rectangle rowRect = parentAccObject.Bounds; 5095Rectangle columnRect; 5470internal override Rectangle BoundingRectangle
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (11)
19private Rectangle clipBounds; 20private Rectangle cellBounds; 33Rectangle clipBounds, 34Rectangle cellBounds, 91public Rectangle CellBounds 109public Rectangle ClipBounds 190public void Paint(Rectangle clipBounds, DataGridViewPaintParts paintParts) 214public void PaintBackground(Rectangle clipBounds, bool cellsPaintSelectionBackground) 243public void PaintContent(Rectangle clipBounds) 267Rectangle clipBounds, 268Rectangle cellBounds,
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (28)
533protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 542return Rectangle.Empty; 547Rectangle cellBounds; 551Rectangle checkBoxBounds = PaintPrivate(graphics, 587protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 600return Rectangle.Empty; 609return Rectangle.Empty; 615Rectangle cellBounds; 619Rectangle errorIconBounds = PaintPrivate(graphics, 761Rectangle borderWidthsRect = this.StdBorderWidths; 841Rectangle cellBounds; 844Rectangle borderWidths = BorderWidths(dgvabsEffective); 1104Rectangle clipBounds, 1105Rectangle cellBounds, 1143private Rectangle PaintPrivate(Graphics g, 1144Rectangle clipBounds, 1145Rectangle cellBounds, 1165Rectangle resultBounds; 1172Rectangle valBounds = cellBounds; 1173Rectangle borderWidths = BorderWidths(advancedBorderStyle); 1249Rectangle errorBounds = valBounds; 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); 1616resultBounds = Rectangle.Empty; 1622resultBounds = Rectangle.Empty; 1793public static void DrawCheckBox(Graphics g, Rectangle bounds, int state) 1796CheckBoxRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (22)
229protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 243return Rectangle.Empty; 255Rectangle cellBounds; 259Rectangle contentBounds = PaintPrivate(graphics, 537Rectangle borderWidthsRect = BorderWidths(dgvabsEffective); 700Rectangle rectThemeMargins = DataGridViewHeaderCell.GetThemeMargins(graphics); 739Rectangle clipBounds, 740Rectangle cellBounds, 772private Rectangle PaintPrivate(Graphics g, 773Rectangle clipBounds, 774Rectangle cellBounds, 784Rectangle contentBounds = Rectangle.Empty; 791Rectangle valBounds = cellBounds; 792Rectangle borderWidths = BorderWidths(advancedBorderStyle); 797Rectangle backgroundBounds = valBounds; 875Rectangle rectThemeMargins = DataGridViewHeaderCell.GetThemeMargins(g); 1245public static void DrawHeader(Graphics g, Rectangle bounds, int headerState) 1247Rectangle rectClip = Rectangle.Truncate(g.ClipBounds); 1252Rectangle cornerClip = new Rectangle(bounds.Left, bounds.Bottom-2, 2, 2); 1272public override Rectangle Bounds
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (41)
749Rectangle borderAndPaddingWidths = BorderWidths(dgvabsEffective); 957protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 966return Rectangle.Empty; 974Rectangle cellBounds; 978Rectangle dropDownButtonRect; 979Rectangle contentBounds = PaintPrivate(graphics, 1061protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 1074return Rectangle.Empty; 1082Rectangle cellBounds; 1086Rectangle dropDownButtonRect; 1087Rectangle errorIconBounds = PaintPrivate(graphics, 1371Rectangle borderWidthsRect = this.StdBorderWidths; 1584Rectangle rectBottomSection = this.DataGridView.GetCellDisplayRectangle(this.ColumnIndex, rowIndex, true); 2000Rectangle cellBounds = this.DataGridView.GetCellDisplayRectangle(this.OwningColumn.Index, rowIndex, false /*cutOverflow*/); 2001Rectangle cutoffCellBounds = cellBounds; 2012Rectangle dropDownButtonRect; 2049Rectangle clipBounds, 2050Rectangle cellBounds, 2065Rectangle dropDownButtonRect; 2094private Rectangle PaintPrivate(Graphics g, 2095Rectangle clipBounds, 2096Rectangle cellBounds, 2103out Rectangle dropDownButtonRect, 2121Rectangle resultBounds = Rectangle.Empty; 2122dropDownButtonRect = Rectangle.Empty; 2145Rectangle borderWidths = BorderWidths(advancedBorderStyle); 2146Rectangle valBounds = cellBounds; 2242Rectangle dropRect; 2492Rectangle errorBounds = valBounds; 2493Rectangle textBounds = Rectangle.Inflate(valBounds, -2, -2); 2540Rectangle focusBounds = textBounds; 2552Rectangle focusBounds = textBounds; 2636return Rectangle.Empty; 2649resultBounds = Rectangle.Empty; 3185public static void DrawTextBox(Graphics g, Rectangle bounds, ComboBoxState state) 3190public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state) 3196public static void DrawBorder(Graphics g, Rectangle bounds) 3209public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state, bool rightToLeft) 3236public static void DrawReadOnlyButton(Graphics g, Rectangle bounds, ComboBoxState state)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (10)
29private static Rectangle rectThemeMargins = new Rectangle(-1, -1, 0, 0); 106return this.DataGridView.LayoutInfo.TopLeftHeader != Rectangle.Empty; 393if (this.DataGridView.LayoutInfo.TopLeftHeader != Rectangle.Empty) 481internal static Rectangle GetThemeMargins(Graphics g) 485Rectangle rectCell = new Rectangle(0, 0, DATAGRIDVIEWHEADERCELL_themeMargin, DATAGRIDVIEWHEADERCELL_themeMargin); 486Rectangle rectContent = DataGridViewHeaderCellRenderer.VisualStyleRenderer.GetBackgroundContentRectangle(g, rectCell); 625Rectangle clipBounds, 626Rectangle cellBounds, 648Rectangle valBounds = cellBounds; 649Rectangle borderWidths = BorderWidths(advancedBorderStyle);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (30)
306protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 315return Rectangle.Empty; 323Rectangle cellBounds; 327Rectangle imgBounds = PaintPrivate(graphics, 362protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 375return Rectangle.Empty; 383Rectangle cellBounds; 387Rectangle errBounds = PaintPrivate(graphics, 475Rectangle borderWidthsRect = this.StdBorderWidths; 632private Rectangle ImgBounds(Rectangle bounds, int imgWidth, int imgHeight, DataGridViewImageCellLayout imageLayout, DataGridViewCellStyle cellStyle) 637Rectangle imgBounds = Rectangle.Empty; 750Rectangle clipBounds, 751Rectangle cellBounds, 789private Rectangle PaintPrivate(Graphics g, 790Rectangle clipBounds, 791Rectangle cellBounds, 816Rectangle resultBounds; 817Rectangle valBounds = cellBounds; 818Rectangle borderWidths = BorderWidths(advancedBorderStyle); 825Rectangle imgBounds = valBounds; 898Rectangle imgBounds2 = ImgBounds(imgBounds, (img == null) ? ico.Width : img.Width, (img == null) ? ico.Height : img.Height, imageLayout, cellStyle); 911g.SetClip(Rectangle.Intersect(Rectangle.Intersect(imgBounds2, imgBounds), Rectangle.Truncate(g.VisibleClipBounds))); 931resultBounds = Rectangle.Empty; 940resultBounds = Rectangle.Empty; 968resultBounds = Rectangle.Empty; 974resultBounds = Rectangle.Empty;
winforms\Managed\System\WinForms\DataGridViewLayoutData.cs (14)
18public Rectangle ClientRectangle = Rectangle.Empty; 21public Rectangle Inside = Rectangle.Empty; 24public Rectangle RowHeaders = Rectangle.Empty; 27public Rectangle ColumnHeaders = Rectangle.Empty; 30public Rectangle TopLeftHeader = Rectangle.Empty; 33public Rectangle Data = Rectangle.Empty; 36public Rectangle ResizeBoxRect = Rectangle.Empty;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (21)
538Rectangle linkBounds = GetContentBounds(rowIndex); 550protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 559return Rectangle.Empty; 567Rectangle cellBounds; 571Rectangle linkBounds = PaintPrivate(graphics, 606protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 619return Rectangle.Empty; 627Rectangle cellBounds; 631Rectangle errorIconBounds = PaintPrivate(graphics, 662Rectangle borderWidthsRect = this.StdBorderWidths; 941Rectangle clipBounds, 942Rectangle cellBounds, 981private Rectangle PaintPrivate(Graphics g, 982Rectangle clipBounds, 983Rectangle cellBounds, 1008Rectangle resultBounds = Rectangle.Empty; 1010Rectangle borderWidths = BorderWidths(advancedBorderStyle); 1011Rectangle valBounds = cellBounds; 1040Rectangle errorBounds = valBounds; 1068Rectangle focusBounds = DataGridViewUtilities.GetTextBounds(valBounds,
winforms\Managed\System\WinForms\DataGridViewMethods.cs (130)
2461Rectangle clip = Rectangle.Union(this.layout.ColumnHeaders, this.layout.Data); 2464clip = Rectangle.Union(this.layout.TopLeftHeader, clip); 2484Rectangle cursorClip = this.layout.ColumnHeaders; 2561private Rectangle GetResizeClipRectangle(int columnIndex) 2563Rectangle clip = Rectangle.Union(this.layout.ColumnHeaders, this.layout.Data); 2775Rectangle clip = Rectangle.Union(this.layout.RowHeaders, this.layout.Data); 2778clip = Rectangle.Union(this.layout.TopLeftHeader, clip); 2808Rectangle clip = Rectangle.Union(this.layout.RowHeaders, this.layout.Data); 3013private Rectangle CalcColRelocationFeedbackRect(int mouseX) 3015Rectangle r, inside = this.layout.ColumnHeaders; 3018inside = Rectangle.Union(this.layout.TopLeftHeader, inside); 3038private Rectangle CalcColResizeFeedbackRect(int mouseX) 3040Rectangle inside = this.layout.Data; 3041Rectangle r = new Rectangle(mouseX + this.mouseBarOffset - 1, inside.Y, 3, inside.Height); 3054private Rectangle CalcRowResizeFeedbackRect(int mouseY) 3056Rectangle inside = this.layout.Data; 3057Rectangle r = new Rectangle(inside.X, mouseY + this.mouseBarOffset - 1, inside.Width, 3); 3420private void CaptureMouse(Rectangle cursorClip) 4329Rectangle oldResizeRect = this.layout.ResizeBoxRect; 4340Rectangle inside = newLayout.Inside; 4352Rectangle insideLeft = inside; 4357Rectangle colHeaders = insideLeft; 4366newLayout.ColumnHeaders = Rectangle.Empty; 4371Rectangle rowHeaders = insideLeft; 4387Rectangle topLeft; 4388Rectangle colHeaders = newLayout.ColumnHeaders; 4406newLayout.TopLeftHeader = Rectangle.Empty; 4411newLayout.RowHeaders = Rectangle.Empty; 4412newLayout.TopLeftHeader = Rectangle.Empty; 5428private NativeMethods.RECT[] CreateScrollableRegion(Rectangle scroll) 5495private void DiscardZonesInScrollingArea(ref Rectangle rectScrollingArea, 5684Rectangle r = CalcColRelocationFeedbackRect(mouseX); 5688Rectangle rectInsertionBar = new Rectangle(0, this.layout.ColumnHeaders.Top, DATAGRIDVIEW_insertionBarWidth, this.layout.ColumnHeaders.Height); 5748Rectangle r = CalcColResizeFeedbackRect(mouseX); 5758Rectangle r = CalcRowResizeFeedbackRect(mouseY); 5762private void DrawShadowRect(Rectangle r) 5785private void DrawSplitBar(Rectangle r) 6107Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 6447Rectangle rectScreen = Screen.FromControl(this).WorkingArea; 6884internal Rectangle GetCellAdjustedDisplayRectangle(int columnIndex, int rowIndex, bool cutOverflow) 6886Rectangle rect = GetCellDisplayRectangle(columnIndex, rowIndex, cutOverflow); 7094public Rectangle GetCellDisplayRectangle(int columnIndex, int rowIndex, bool cutOverflow) 7096Rectangle rowRect; 7097Rectangle columnRect; 8244public Rectangle GetColumnDisplayRectangle(int columnIndex, bool cutOverflow) 8253private Rectangle GetColumnDisplayRectanglePrivate(int columnIndex, bool cutOverflow) 8259return Rectangle.Empty; 8262Rectangle data = this.layout.Data; 8372Rectangle columnRect; 8389return Rectangle.Empty; 8396Rectangle data = this.layout.Data; 8641Rectangle rectScrollingArea = this.layout.Data; 8662rectScrollingArea = Rectangle.Union(rectScrollingArea, this.layout.RowHeaders); 8758rectScrollingArea = Rectangle.Union(rectScrollingArea, this.layout.ColumnHeaders); 9106public Rectangle GetRowDisplayRectangle(int rowIndex, bool cutOverflow) 9115private Rectangle GetRowDisplayRectanglePrivate(int rowIndex, bool cutOverflow) 9121return Rectangle.Empty; 9124Rectangle data = this.layout.Data; 9181Rectangle rowRect = new Rectangle(data.X, 9196return Rectangle.Empty; 9201Rectangle data = this.layout.Data; 9970Rectangle cellDisplayRect = GetCellAdjustedDisplayRectangle(columnIndex, rowIndex, true); 9997Rectangle columnDisplayRect = GetColumnDisplayRectanglePrivate(columnIndex, true); 10043Rectangle rowDisplayRect = GetRowDisplayRectanglePrivate(rowIndex, true); 10072Rectangle rowDisplayRect, data; 10611Rectangle lastSplitBarRect = CalcRowResizeFeedbackRect(this.lastRowSplitBar); 10669Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 10676Rectangle lastSplitBarRect = CalcColResizeFeedbackRect(this.lastColSplitBar); 13918Invalidate(Rectangle.Union(this.layout.ColumnHeaders, this.layout.Data)); 14364Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 14950Rectangle rightArea = this.layout.Data; 14953rightArea = Rectangle.Union(rightArea, this.layout.ColumnHeaders); 17122Rectangle clipRect = e.ClipRectangle; 17123Rectangle gridRect = this.GetGridRectangle(); 17127clipRect = Rectangle.Union(clipRect, CalcRowResizeFeedbackRect(this.currentRowSplitBar)); 17131clipRect = Rectangle.Union(clipRect, CalcColResizeFeedbackRect(this.currentColSplitBar)); 17187private Rectangle GetGridRectangle() 17189Rectangle gridRect = this.layout.Data; 17192gridRect = Rectangle.Union(gridRect, this.layout.RowHeaders); 17205gridRect = Rectangle.Union(gridRect, this.layout.ColumnHeaders); 17220private Rectangle GetGridFocusRectangle() 17222Rectangle focusRect = this.GetGridRectangle(); 17234Rectangle focusRect = GetGridFocusRectangle(); 17268private void InvalidateRectangleEdges(Rectangle rect) 17271Rectangle edge = rect; 17875Rectangle right; 17876Rectangle bottom; 17877Rectangle oldClientRectangle = this.layout.ClientRectangle; 17878Rectangle oldGridFocusRectangle = this.GetGridFocusRectangle(); 17895Rectangle newClientRectangle = this.normalClientRectangle; 17896Rectangle newGridFocusRectangle = this.DisplayRectangle; 18650Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.RowHeaders)); 19359Rectangle rect = Screen.GetBounds(pt); 19764protected virtual void PaintBackground(Graphics graphics, Rectangle clipBounds, Rectangle gridBounds) 19767Rectangle rcBelowRows = gridBounds; 19792Rectangle rcNextRows = gridBounds; 19828private void PaintBorder(Graphics g, Rectangle clipRect, Rectangle bounds) 19839Rectangle edge = new Rectangle(0, 0, bounds.Width, borderWidth); 19888private void PaintColumnHeaders(Graphics g, Rectangle clipBounds, bool singleBorderAdded) 19892Rectangle bandBounds, cellBounds; 19956Rectangle scrollingBounds = bandBounds; 19969Rectangle rowRect = bandBounds; 20039Rectangle gridBounds, 20040Rectangle clipRect, 20044Rectangle rc = gridBounds; 20062Rectangle columnHeadersClip = new Rectangle(); 20107Rectangle boundingRect, 20108Rectangle clipRect, 20113Rectangle rowBounds; 20227Rectangle cellBounds = this.layout.TopLeftHeader; 20352Rectangle editingZone = this.layout.Data; 20367Rectangle cellBounds = new Rectangle(leftEdge, GetRowYFromIndex(this.ptCurrentCell.Y), 20369Rectangle cellClip = cellBounds; 25753Cursor.ClipInternal = Rectangle.Empty; 25989Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 26434Rectangle rowsRect = this.layout.Data; 26437rowsRect = Rectangle.Union(rowsRect, this.layout.RowHeaders); 29009Rectangle rectUpper = GetCellAdjustedDisplayRectangle(-1, rowIndexStart, true); 29010Rectangle rectLower = GetCellAdjustedDisplayRectangle(-1, rowIndexEnd, true); 29020Invalidate(Rectangle.Union(rectUpper, rectLower)); 29058Rectangle bottomArea = this.layout.Data; 29061bottomArea = Rectangle.Union(bottomArea, this.layout.RowHeaders); 29122Rectangle bottomArea = this.layout.Data; 29125bottomArea = Rectangle.Union(bottomArea, this.layout.RowHeaders);
winforms\Managed\System\WinForms\DataGridViewRow.cs (16)
1272Rectangle clipBounds, 1273Rectangle bounds, 1513Rectangle clipBounds, 1514Rectangle rowBounds, 1525Rectangle updatedClipBounds = clipBounds; 1587Rectangle clipBounds, 1588Rectangle rowBounds, 1605Rectangle cellBounds = rowBounds; 1675Rectangle dataBounds = rowBounds; 1691Rectangle rowRect = rowBounds; 1775Rectangle clipBounds, 1776Rectangle rowBounds, 1797Rectangle cellBounds = rowBounds; 1926public override Rectangle Bounds 1929Rectangle rowRect; 2110Rectangle rowBounds = this.owner.DataGridView.GetRowDisplayRectangle(this.owner.Index, true /*cutOverflow*/);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (29)
304protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 313return Rectangle.Empty; 325Rectangle cellBounds; 329Rectangle contentBounds = PaintPrivate(graphics, 364protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 376return Rectangle.Empty; 381Rectangle cellBounds; 388Rectangle errorBounds = PaintPrivate(graphics, 664Rectangle borderWidthsRect = BorderWidths(dgvabsEffective); 673Rectangle rectThemeMargins = DataGridViewHeaderCell.GetThemeMargins(graphics); 711Rectangle clipBounds, 712Rectangle cellBounds, 751private Rectangle PaintPrivate(Graphics graphics, 752Rectangle clipBounds, 753Rectangle cellBounds, 776Rectangle resultBounds = Rectangle.Empty; 783Rectangle valBounds = cellBounds; 784Rectangle borderWidths = BorderWidths(advancedBorderStyle); 789Rectangle backgroundBounds = valBounds; 847Rectangle rectThemeMargins = DataGridViewHeaderCell.GetThemeMargins(graphics); 892Rectangle errorBounds = valBounds; 1130private void PaintIcon(Graphics g, Bitmap bmp, Rectangle bounds, Color foreColor) 1132Rectangle bmpRect = new Rectangle(this.DataGridView.RightToLeftInternal ? 1192public static void DrawHeader(Graphics g, Rectangle bounds, int headerState) 1195VisualStyleRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds)); 1208public override Rectangle Bounds 1214return Rectangle.Empty; 1218Rectangle rowRect = this.ParentPrivate.Bounds;
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (12)
19private Rectangle clipBounds; 20private Rectangle rowBounds; 31Rectangle clipBounds, 32Rectangle rowBounds, 71public Rectangle ClipBounds 129public Rectangle RowBounds 156public void DrawFocus(Rectangle bounds, bool cellsPaintSelectionBackground) 172public void PaintCells(Rectangle clipBounds, DataGridViewPaintParts paintParts) 189public void PaintCellsBackground(Rectangle clipBounds, bool cellsPaintSelectionBackground) 211public void PaintCellsContent(Rectangle clipBounds) 256Rectangle clipBounds, 257Rectangle rowBounds,
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (12)
19private Rectangle clipBounds; 20private Rectangle rowBounds; 32Rectangle clipBounds, 33Rectangle rowBounds, 73public Rectangle ClipBounds 148public Rectangle RowBounds 175public void DrawFocus(Rectangle bounds, bool cellsPaintSelectionBackground) 191public void PaintCells(Rectangle clipBounds, DataGridViewPaintParts paintParts) 208public void PaintCellsBackground(Rectangle clipBounds, bool cellsPaintSelectionBackground) 230public void PaintCellsContent(Rectangle clipBounds) 275Rectangle clipBounds, 276Rectangle rowBounds,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (24)
190private Rectangle GetAdjustedEditingControlBounds(Rectangle editingControlBounds, DataGridViewCellStyle cellStyle) 308protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 317return Rectangle.Empty; 325Rectangle cellBounds; 329Rectangle textBounds = PaintPrivate(graphics, 364protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 377return Rectangle.Empty; 382Rectangle cellBounds; 386Rectangle errorBounds = PaintPrivate(graphics, 437Rectangle borderWidthsRect = this.StdBorderWidths; 624Rectangle clipBounds, 625Rectangle cellBounds, 663private Rectangle PaintPrivate(Graphics graphics, 664Rectangle clipBounds, 665Rectangle cellBounds, 688Rectangle resultBounds = Rectangle.Empty; 695Rectangle borderWidths = BorderWidths(advancedBorderStyle); 696Rectangle valBounds = cellBounds; 749Rectangle errorBounds = valBounds; 808Rectangle cellBounds, 809Rectangle cellClip, 816Rectangle editingControlBounds = PositionEditingPanel(cellBounds,
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (25)
41protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 55return Rectangle.Empty; 67Rectangle cellBounds; 71Rectangle contentBounds = PaintPrivate(graphics, 106protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 115return Rectangle.Empty; 125Rectangle cellBounds; 129Rectangle errorBounds = PaintPrivate(graphics, 183Rectangle borderWidthsRect = BorderWidths(this.DataGridView.AdjustedTopLeftHeaderBorderStyle); 207Rectangle clipBounds, 208Rectangle cellBounds, 246private Rectangle PaintPrivate(Graphics graphics, 247Rectangle clipBounds, 248Rectangle cellBounds, 271Rectangle resultBounds = Rectangle.Empty; 273Rectangle valBounds = cellBounds; 274Rectangle borderWidths = BorderWidths(advancedBorderStyle); 332Rectangle errorBounds = valBounds; 391Rectangle clipBounds, 392Rectangle bounds, 460public static void DrawHeader(Graphics g, Rectangle bounds, int headerState) 463VisualStyleRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds)); 476public override Rectangle Bounds 480Rectangle cellRect = this.Owner.DataGridView.GetCellDisplayRectangle(-1, -1, false /*cutOverflow*/);
winforms\Managed\System\WinForms\DataGridViewTopRowAccessibleObject.cs (5)
37public override Rectangle Bounds 47Rectangle rect = Rectangle.Union(this.owner.layout.ColumnHeaders, this.owner.layout.TopLeftHeader); 52return Rectangle.Empty; 217internal override Rectangle BoundingRectangle
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (5)
307internal static Rectangle GetTextBounds(Rectangle cellBounds, 315internal static Rectangle GetTextBounds(Rectangle cellBounds, 347internal static Point GetTextLocation(Rectangle cellBounds,
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1186internal override Rectangle ApplyBoundsConstraints(int suggestedX, int suggestedY, int proposedWidth, int proposedHeight) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (3)
268Rectangle pageHostBounds = new Rectangle(2 * BUTTON_PAD + selectorWidth, 2 * BUTTON_PAD + STRIP_HEIGHT, 275Rectangle pageBounds = new Rectangle(0, 0, pageHostBounds.Width, pageHostBounds.Height); 283Rectangle bounds = pageHostBounds;
winforms\Managed\System\WinForms\DrawItemEvent.cs (4)
60private readonly Rectangle rect; 75public DrawItemEventArgs(Graphics graphics, Font font, Rectangle rect, 90public DrawItemEventArgs(Graphics graphics, Font font, Rectangle rect, 118public Rectangle Bounds {
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (6)
27private readonly Rectangle bounds; 40public DrawListViewColumnHeaderEventArgs(Graphics graphics, Rectangle bounds, int columnIndex, 82public Rectangle Bounds { 164Rectangle r = this.bounds; 213Rectangle newBounds = Rectangle.Inflate(bounds, -padding, 0);
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (7)
26private readonly Rectangle bounds; 35public DrawListViewItemEventArgs(Graphics graphics, ListViewItem item, Rectangle bounds, 87public Rectangle Bounds 140Rectangle focusBounds = bounds; 163private Rectangle UpdateBounds(Rectangle originalBounds, bool drawText) { 164Rectangle resultBounds = originalBounds;
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (7)
27private readonly Rectangle bounds; 40public DrawListViewSubItemEventArgs(Graphics graphics, Rectangle bounds, ListViewItem item, 85public Rectangle Bounds 181public void DrawFocusRectangle(Rectangle bounds) 185ControlPaint.DrawFocusRectangle(graphics, Rectangle.Inflate(bounds, -1, -1), item.ForeColor, item.BackColor); 219Rectangle newBounds = Rectangle.Inflate(bounds, -padding, 0);
winforms\Managed\System\WinForms\DrawToolTipEventArgs.cs (3)
29private readonly Rectangle bounds; 39public DrawToolTipEventArgs(Graphics graphics, IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, 90public Rectangle Bounds
winforms\Managed\System\WinForms\DrawTreeNodeEventArgs.cs (3)
26private readonly Rectangle bounds; 34public DrawTreeNodeEventArgs(Graphics graphics, TreeNode node, Rectangle bounds, 86public Rectangle Bounds
winforms\Managed\System\WinForms\ErrorProvider.cs (8)
878Rectangle windowBounds = Rectangle.Empty; 1073Rectangle bounds = item.GetIconBounds(provider.Region.Size); 1177windowBounds = Rectangle.Empty; 1180Rectangle iconBounds = item.GetIconBounds(size); 1184windowBounds = Rectangle.Union(windowBounds, iconBounds); 1192Rectangle iconBounds = item.GetIconBounds(size); 1521internal Rectangle GetIconBounds(Size size) {
winforms\Managed\System\WinForms\Form.cs (29)
201private Rectangle restoredWindowBounds = new Rectangle(-1, -1, -1, -1); 213private Rectangle restoreBounds = new Rectangle(-1, -1, -1, -1); 887Rectangle preClientUpdateRestoredWindowBounds = restoredWindowBounds; 1164public Rectangle DesktopBounds { 1166Rectangle screen = SystemInformation.WorkingArea; 1167Rectangle bounds = Bounds; 1190Rectangle screen = SystemInformation.WorkingArea; 1532protected Rectangle MaximizedBounds { 1748Rectangle bounds = this.Bounds; 2204public Rectangle RestoreBounds { 3434Rectangle currentClient = Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 3436Rectangle bounds = Bounds; 3458currentClient = Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 4021Rectangle clientRect = mdiclient.ClientRectangle; 4036Rectangle screenRect = desktop.WorkingArea; 4455Rectangle screenRect = desktop.WorkingArea; 4506Rectangle screenRect = desktop.WorkingArea; 5824protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 5931Rectangle adjustedBounds = ApplyBoundsConstraints(x,y,width,height); 5947internal override Rectangle ApplyBoundsConstraints(int suggestedX, int suggestedY, int proposedWidth, int proposedHeight) { 5949Rectangle adjustedBounds = base.ApplyBoundsConstraints(suggestedX, suggestedY, proposedWidth, proposedHeight); 5962Rectangle current = screens[i].WorkingArea; 6053Rectangle workingArea = SystemInformation.WorkingArea; 6062Rectangle workingArea = SystemInformation.WorkingArea; 7160Rectangle maximizedBounds = MaximizedBounds; 7178private void WmGetMinMaxInfoHelper(ref Message m, Size minTrack, Size maxTrack, Rectangle maximizedBounds) { 7854Rectangle r = new Rectangle(owner.Left, owner.Top, s.Width, SystemInformation.CaptionHeight);
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (4)
119public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor) 146public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, Color backColor) 173public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, TextFormatFlags flags) 191public static void DrawText(IDeviceContext dc, string text, Font font, Rectangle bounds, Color foreColor, Color backColor, TextFormatFlags flags)
winforms\Managed\System\WinForms\GroupBox.cs (2)
200public override Rectangle DisplayRectangle { 551Rectangle textRectangle = ClientRectangle; // Max text bounding box passed to drawing methods to support RTL.
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (16)
85public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) { 98public static void DrawGroupBox(Graphics g, Rectangle bounds, GroupBoxState state) { 111public static void DrawGroupBox(Graphics g, Rectangle bounds, string groupBoxText, Font font, GroupBoxState state) { 121public static void DrawGroupBox(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, GroupBoxState state) { 131public static void DrawGroupBox(Graphics g, Rectangle bounds, string groupBoxText, Font font, TextFormatFlags flags, GroupBoxState state) { 144public static void DrawGroupBox(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) { 155private static void DrawThemedGroupBoxNoText(Graphics g, Rectangle bounds, GroupBoxState state) { 164private static void DrawThemedGroupBoxWithText(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) { 168Rectangle textBounds = bounds; 185Rectangle boxBounds = bounds; 190Rectangle clipLeft = boxBounds; 191Rectangle clipMiddle = boxBounds; 192Rectangle clipRight = boxBounds; 223private static void DrawUnthemedGroupBoxNoText(Graphics g, Rectangle bounds, GroupBoxState state) { 259private static void DrawUnthemedGroupBoxWithText(Graphics g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) { 261Rectangle textBounds = bounds;
winforms\Managed\System\WinForms\HtmlElement.cs (3)
103public Rectangle ClientRectangle 301public Rectangle OffsetRectangle 396public Rectangle ScrollRectangle
winforms\Managed\System\WinForms\InvalidateEvent.cs (4)
30private readonly Rectangle invalidRect; 39public InvalidateEventArgs(Rectangle invalidRect) { 47/// indicating the <see cref='System.Drawing.Rectangle'/> 51public Rectangle InvalidRect {
winforms\Managed\System\WinForms\Label.cs (8)
1086protected Rectangle CalcImageRenderBounds(Image image, Rectangle r, ContentAlignment align) { 1192protected void DrawImage(System.Drawing.Graphics g, Image image, Rectangle r, ContentAlignment align) { 1193Rectangle loc = CalcImageRenderBounds(image, r, align); 1517Rectangle face = LayoutUtils.DeflateRect(ClientRectangle, Padding); 1537Rectangle clientRect = this.ClientRectangle; 1619internal override void PrintToMetaFileRecursive(HandleRef hDC, IntPtr lParam, Rectangle bounds) { 1739Rectangle rectInScreen = this.RectangleToScreen(new Rectangle(0, 0, Width, Height));
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (6)
154internal static Rectangle GetSpecifiedBounds(IArrangedElement element) { 156Rectangle rectangle = element.Properties.GetRectangle(_specifiedBoundsProperty, out found); 213Rectangle bounds = element.Bounds; 235Rectangle bounds = element.Bounds; 275Rectangle originalBounds = CommonProperties.GetSpecifiedBounds(element); 306Rectangle bounds = new Rectangle(x, y, width, height);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (31)
36Rectangle bounds = GetCachedBounds(element); 49Rectangle newBounds = bounds; 73private static Rectangle GetGrowthBounds(IArrangedElement element, Size newSize) { 75Rectangle oldBounds = GetCachedBounds(element); 91Rectangle newBounds = new Rectangle(location, newSize); 130private static Rectangle GetAnchorDestination(IArrangedElement element, Rectangle displayRect, bool measureOnly) { 186Rectangle cachedBounds = GetCachedBounds(element); 233Rectangle displayRectangle = container.DisplayRectangle; 259Rectangle remainingBounds = measureOnly ? Rectangle.Empty : container.DisplayRectangle; 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); 347private static void xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, bool measureOnly, ref Size preferredSize, ref Rectangle remainingBounds) { 555Rectangle bounds = GetCachedBounds(element); 568Rectangle parentDisplayRect = element.Container.DisplayRectangle; 714private static Rectangle GetCachedBounds(IArrangedElement element) { 720return (Rectangle) bounds; 734Rectangle displayRectangle = container.DisplayRectangle; 761Rectangle bounds = (Rectangle) entry.Value; 776private static void SetCachedBounds(IArrangedElement element, Rectangle bounds) { 831Rectangle elementSpace = LayoutUtils.InflateRect(GetCachedBounds(element), margin); 849Rectangle anchorDest = GetAnchorDestination(element, Rectangle.Empty, /*measureOnly=*/true); 861Rectangle anchorDest = GetAnchorDestination(element, Rectangle.Empty, /*measureOnly=*/true);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (18)
57Rectangle measureBounds = new Rectangle(new Point(0, 0), proposedConstraints); 96private Size xLayout(IArrangedElement container, Rectangle displayRect, bool measureOnly) { 119Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height); 129Rectangle rowBounds = new Rectangle(displayRect.X, 149private void LayoutRow(ContainerProxy containerProxy, ElementProxy elementProxy, int startIndex, int endIndex, Rectangle rowBounds) { 158private Size MeasureRow(ContainerProxy containerProxy, ElementProxy elementProxy, int startIndex, Rectangle displayRectangle, out int breakIndex) { 163private Size xLayoutRow(ContainerProxy containerProxy, ElementProxy elementProxy, int startIndex, int endIndex, Rectangle rowBounds, out int breakIndex, bool measureOnly) { 220Rectangle cellBounds = new Rectangle(location, new Size(requiredSize.Width, rowBounds.Height)); 325private Rectangle _displayRect; 336public virtual Rectangle Bounds { 387public Rectangle DisplayRect { 416protected Rectangle RTLTranslateNoMarginSwap(Rectangle bounds) { 418Rectangle newBounds = bounds; 466public override Rectangle Bounds { 508public override Rectangle Bounds { 552public virtual Rectangle Bounds { 620public override Rectangle Bounds {
winforms\Managed\System\WinForms\Layout\IArrangedElement.cs (3)
18Rectangle Bounds {get; } 22void SetBounds(Rectangle bounds, BoundsSpecified specified); 32Rectangle DisplayRectangle { get; }
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (43)
26public static readonly Rectangle MaxRectangle = new Rectangle(0, 0, Int32.MaxValue, Int32.MaxValue); 208public static bool IsIntersectHorizontally(Rectangle rect1, Rectangle rect2) { 223public static bool IsIntersectVertically(Rectangle rect1, Rectangle rect2) { 247public static Rectangle AlignAndStretch(Size fitThis, Rectangle withinThis, AnchorStyles anchorStyles) { 251public static Rectangle Align(Size alignThis, Rectangle withinThis, AnchorStyles anchorStyles) { 255public static Rectangle Align(Size alignThis, Rectangle withinThis, ContentAlignment align) { 259public static Rectangle HAlign(Size alignThis, Rectangle withinThis, AnchorStyles anchorStyles) { 271private static Rectangle HAlign(Size alignThis, Rectangle withinThis, ContentAlignment align) { 283public static Rectangle VAlign(Size alignThis, Rectangle withinThis, AnchorStyles anchorStyles) { 296public static Rectangle VAlign(Size alignThis, Rectangle withinThis, ContentAlignment align) { 323public static Rectangle InflateRect(Rectangle rect, Padding padding) { 331public static Rectangle DeflateRect(Rectangle rect, Padding padding) { 382public static Rectangle FlipRectangle(Rectangle rect) { 389public static Rectangle FlipRectangleIf(bool condition, Rectangle rect) { 424public static bool IsZeroWidthOrHeight(Rectangle rectangle) { 436public static void SplitRegion(Rectangle bounds, Size specifiedContent, AnchorStyles region1Align, out Rectangle region1, out Rectangle region2) { 464Debug.Assert(Rectangle.Union(region1, region2) == bounds, 469public static void ExpandRegionsToFillBounds(Rectangle bounds, AnchorStyles region1Align, ref Rectangle region1, ref Rectangle region2) { 495Debug.Assert(Rectangle.Union(region1, region2) == bounds, "region1 and region2 do not add up to bounds."); 511private static Rectangle SubstituteSpecifiedBounds(Rectangle originalBounds, Rectangle substitutionBounds, AnchorStyles specified) { 516return Rectangle.FromLTRB(left, top, right, bottom); 522public static Rectangle RTLTranslate(Rectangle bounds, Rectangle withinBounds) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (8)
1156Rectangle displayRect = Rectangle.Truncate(displayRectF); 1215Rectangle cellBounds = new Rectangle((int)(startX + cellBorderWidth / 2.0f), (int)(top + cellBorderWidth / 2.0f), width - cellBorderWidth, height - cellBorderWidth); 1234Rectangle elementBounds = LayoutUtils.AlignAndStretch(GetElementSize(element, cellBounds.Size), cellBounds, anchorStyles); 2083Rectangle elementBounds1 = layoutInfo1.Element.Bounds; 2084Rectangle cellsOccupied1 = new Rectangle(layoutInfo1.ColumnStart, layoutInfo1.RowStart, layoutInfo1.ColumnSpan, layoutInfo1.RowSpan); 2087Rectangle elementBounds2 = layoutInfo2.Element.Bounds; 2088Rectangle cellsOccupied2 = new Rectangle(layoutInfo2.ColumnStart, layoutInfo2.RowStart, layoutInfo2.ColumnSpan, layoutInfo2.RowSpan);
winforms\Managed\System\WinForms\LinkLabel.cs (19)
197private Rectangle ClientRectWithPadding { 504internal static Rectangle CalcTextRenderBounds(Rectangle textRect, Rectangle clientRect, ContentAlignment align) { 677Rectangle clientRectWithPadding = ClientRectWithPadding; 701Rectangle visualRectangle = new Rectangle(clientRectWithPadding.X + iLeftMargin, 1144Rectangle clientRect = this.ClientRectWithPadding; 1189finalrect = CalcTextRenderBounds(System.Drawing.Rectangle.Round(finalrect) /*textRect*/, this.ClientRectWithPadding /*clientRect*/, RtlTranslateContent(this.TextAlign)); 1262Rectangle clientRectWidthPadding = ClientRectWithPadding; 1288Rectangle imageBounds = CalcImageRenderBounds(i, ClientRectangle, RtlTranslateAlignment(ImageAlign)); 1445Rectangle clientRectWithPadding = ClientRectWithPadding; 1454Rectangle focusRect; 1458focusRect = Rectangle.Ceiling(finalrect); 1465ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(rect), ForeColor, BackColor); 1498Rectangle clientRectWithPadding = ClientRectWithPadding; 2709public override Rectangle Bounds { 2731return Rectangle.Empty; 2735Rectangle rect; 2737rect = Rectangle.Ceiling(region.GetBounds(g));
winforms\Managed\System\WinForms\ListBox.cs (7)
1503public Rectangle GetItemRectangle(int index) { 1507return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 1515protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) { 2280Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1); 2329Rectangle bounds = Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom);
winforms\Managed\System\WinForms\ListView.cs (26)
2534Rectangle itemBounds = GetItemRectOrEmpty(itemIndex); 2640Rectangle subItemBounds = GetSubItemRect(itemIndex, nmcd->iSubItem); 3123Rectangle itemBounds = lvi.Bounds; 3129Rectangle iconBounds = this.GetItemRect(lvi.Index, ItemBoundsPortion.Icon); 3403public Rectangle GetItemRect(int index) { 3411public Rectangle GetItemRect(int index, ItemBoundsPortion portion) { 3421return Rectangle.Empty; 3432return Rectangle.FromLTRB(itemrect.left, itemrect.top, itemrect.right, itemrect.bottom); 3439private Rectangle GetItemRectOrEmpty(int index) { 3441return Rectangle.Empty; 3444return Rectangle.Empty; 3451return Rectangle.Empty; 3453return Rectangle.FromLTRB(itemrect.left, itemrect.top, itemrect.right, itemrect.bottom); 3491internal Rectangle GetSubItemRect(int itemIndex, int subItemIndex) { 3495internal Rectangle GetSubItemRect(int itemIndex, int subItemIndex, ItemBoundsPortion portion) { 3498return Rectangle.Empty; 3515return Rectangle.Empty; 3526Rectangle result = Rectangle.FromLTRB(itemrect.left, itemrect.top, itemrect.right, itemrect.bottom); 4704Rectangle rectInvalid = this.Items[startIndex].Bounds; 4707rectInvalid = Rectangle.Union(rectInvalid, this.Items[index].Bounds); 4711rectInvalid = Rectangle.Union(rectInvalid, this.Items[startIndex - 1].Bounds); 4721rectInvalid = Rectangle.Union(rectInvalid, this.Items[endIndex + 1].Bounds); 5473Rectangle r = Rectangle.FromLTRB(nmcd->rc.left, nmcd->rc.top, nmcd->rc.right, nmcd->rc.bottom); 6231Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (2)
60 public Rectangle Bounds { 65return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom);
winforms\Managed\System\WinForms\ListViewItem.cs (5)
364public Rectangle Bounds { 1029Rectangle r = this.Bounds; 1051public Rectangle GetBounds(ItemBoundsPortion portion) { 1495public Rectangle Bounds { 1500return Rectangle.Empty;
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\MDIClient.cs (4)
211Rectangle bounds = Bounds; 240Rectangle oldBounds = Bounds; 242Rectangle newBounds = Bounds; 297Rectangle bounds = Bounds;
winforms\Managed\System\WinForms\MenuItem.cs (1)
1498OnDrawItem(new DrawItemEventArgs(g, SystemInformation.MenuFont, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), Index, (DrawItemState)dis.itemState));
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1952Rectangle oldBounds = Bounds;
winforms\Managed\System\WinForms\NativeMethods.cs (3)
3090public RECT(System.Drawing.Rectangle r) { 4035public COMRECT(System.Drawing.Rectangle r) { 6472public UiaRect(System.Drawing.Rectangle r) {
winforms\Managed\System\WinForms\PaintEvent.cs (4)
45private readonly Rectangle clipRect; 71public PaintEventArgs(Graphics graphics, Rectangle clipRect) { 82internal PaintEventArgs(IntPtr dc, Rectangle clipRect) { 101public Rectangle ClipRectangle {
winforms\Managed\System\WinForms\Panel.cs (1)
291internal override void PrintToMetaFileRecursive(HandleRef hDC, IntPtr lParam, Rectangle bounds) {
winforms\Managed\System\WinForms\PictureBox.cs (4)
431private Rectangle ImageRectangle { 437private Rectangle ImageRectangleFromSizeMode(PictureBoxSizeMode mode) 439Rectangle result = LayoutUtils.DeflateRect(ClientRectangle, Padding); 1325Rectangle drawingRect =
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (4)
589Rectangle[] pageRenderArea = new Rectangle[rows * columns]; 635Rectangle box = pageRenderArea[i]; 748Rectangle rect = ClientRectangle;
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\ProgressBarRenderer.cs (4)
52public static void DrawHorizontalBar(Graphics g, Rectangle bounds) { 67public static void DrawVerticalBar(Graphics g, Rectangle bounds) { 82public static void DrawHorizontalChunks(Graphics g, Rectangle bounds) { 97public static void DrawVerticalChunks(Graphics g, Rectangle bounds) {
winforms\Managed\System\WinForms\PropertyGrid.cs (7)
2272Rectangle rectangle = gridView.Bounds; 2329Rectangle rectTarget = target.Bounds; 2343private static void DrawXorBar(Control ctlDrawTo, Rectangle rcFrame) { 2344Rectangle rc = ctlDrawTo.RectangleToScreen(rcFrame); 2995Rectangle toolStripBounds = new Rectangle(0,1,toolStripWidth, toolStripHeight); 3198Rectangle rectDoc = targetMove.Bounds; 5066Rectangle r = this.ClientRectangle;
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (5)
205public override void PaintLabel(System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) { 216Rectangle focusRect = new Rectangle(indent, rect.Y, labelWidth+3, rect.Height-1); 234public override void PaintValue(object val, System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, PaintValueFlags paintFlags) {
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (4)
40internal Rectangle rect = Rectangle.Empty; 117Rectangle newRect = ClientRectangle; 119Rectangle rectInvalidate = new Rectangle(rect.Width-1,0,newRect.Width-rect.Width+1,rect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (5)
97Rectangle dropDownButtonRect = new Rectangle(0, 0, Width, Height); 156private void DDB_Draw3DBorder(System.Drawing.Graphics g, Rectangle r, bool raised) { 179Rectangle inside = r; 203Rectangle rect = Control.ClientRectangle; 213internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, ButtonBaseAdapter.LayoutData layout) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (23)
118private Rectangle outlineRect = Rectangle.Empty; 824public Rectangle OutlineRect { 1861public virtual void PaintLabel(System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) { 1919Rectangle textRect = new Rectangle(stringX, rect.Y + 1, maxSpace, rect.Height - 1); 1922if (!Rectangle.Intersect(textRect, clipRect).IsEmpty) { 1971public virtual void PaintOutline(System.Drawing.Graphics g, Rectangle r) { 1980outlineRect = Rectangle.Empty; 1993outlineRect = Rectangle.Empty; 2001private void PaintOutlineWithExplorerTreeStyle(System.Drawing.Graphics g, Rectangle r, IntPtr handle) { 2004Rectangle outline = this.OutlineRect; 2007outline = Rectangle.Intersect(r, outline); 2031private void PaintOutlineWithClassicStyle(System.Drawing.Graphics g, Rectangle r) { 2035Rectangle outline = this.OutlineRect; 2038outline = Rectangle.Intersect(r, outline); 2088public virtual void PaintValue(object val, System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, PaintValueFlags paintFlags) { 2140Rectangle rectPaint = new Rectangle(rect.X + 1, rect.Y + 1, gridHost.GetValuePaintWidth(), gridHost.GetGridEntryHeight() - 2); 2142if (!Rectangle.Intersect(rectPaint, clipRect).IsEmpty) { 2178if (Rectangle.Intersect(rect, clipRect).IsEmpty) { 2321Rectangle outlineRect = OutlineRect; 2740public override Rectangle Bounds {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
173internal void PositionToolTip(Control parent, Rectangle itemRect) {
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
65public override Rectangle DisplayRectangle {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
39private Rectangle [] uiItemRects; 598public override void PaintLabel(System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) { 611uiItemRects = new Rectangle[pvUIItems.Length];
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (58)
125private Rectangle lastClientRect = Rectangle.Empty; 556Rectangle rect = GetRectangle( selectedRow, ROWLABEL ); 781internal Rectangle AccessibilityGetGridEntryBounds(GridEntry gridEntry) { 786Rectangle rect = GetRectangle(row, ROWVALUE | ROWLABEL); 843protected virtual void AdjustOrigin(System.Drawing.Graphics g, Point newOrigin, ref Rectangle r) { 1038protected virtual void CommonEditorUse(Control ctl, Rectangle rectTarget) { 1045Rectangle rectCur = ctl.Bounds; 1048Rectangle clientRect = this.ClientRectangle; 1053rectTarget = Rectangle.Intersect(clientRect, rectTarget); 1067rectTarget = Rectangle.Empty; 1266protected virtual void DrawLabel(System.Drawing.Graphics g, int row, Rectangle rect, bool selected, bool fLongLabelRequest, ref Rectangle clipRect) { 1276Rectangle cr = Rectangle.Intersect(rect, clipRect); 1310protected virtual void DrawValueEntry(System.Drawing.Graphics g, int row, ref Rectangle clipRect) { 1317Rectangle r = GetRectangle(row,ROWVALUE); 1319Rectangle cr = Rectangle.Intersect(clipRect, r); 1340private /*protected virtual*/ void DrawValueEntry(System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, GridEntry gridEntry, object value, bool fetchValue) { 1343private void DrawValue(System.Drawing.Graphics g, Rectangle rect, Rectangle clipRect, GridEntry gridEntry, object value, bool drawSelected, bool checkShouldSerialize, bool fetchValue, bool paintInPlace) { 1585Rectangle r = GetRectangle(row, rowValue ? ROWVALUE : ROWLABEL); 1632private void SetDropDownWindowPosition(Rectangle rect, bool setBounds = false) { 1639Rectangle rectScreen = Screen.FromControl(Edit).WorkingArea; 1687Rectangle rect = GetRectangle(selectedRow, ROWVALUE); 1711Rectangle rect = GetRectangle(selectedRow, ROWVALUE); 1714Rectangle rectScreen = Screen.FromControl(Edit).WorkingArea; 2133public Rectangle GetRectangle(int row, int flRow) { 2134Rectangle rect = new Rectangle(0,0,0,0); 2222Rectangle rect = ClientRectangle; 2226Rectangle boundsScroll = ScrollBar.Bounds; 2258Rectangle rect; 2362Rectangle r = ClientRectangle; 2557Rectangle drawBounds = die.Bounds; 2607Rectangle clearRect = new Rectangle(1, 1, Size.Width - 2, Size.Height - 2); 3200Rectangle r = GetRectangle(pos.Y, ROWLABEL); 3262Rectangle itemRect = GetRectangle(pt.Y, pt.X); 3450Rectangle clipRect = pe.ClipRectangle; 3535Rectangle rect = GetRectangle(i,ROWLABEL); 3558Rectangle clearRect = new Rectangle(1, yPos, Size.Width - 2, Size.Height - yPos - 1); 3773Rectangle newRect = ClientRectangle; 3774int yDelta = lastClientRect == Rectangle.Empty ? 0 : newRect.Height - lastClientRect.Height; 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); 4411Rectangle rect = GetRectangle(row,ROWVALUE); 4428Rectangle rectTarget = new Rectangle(rect.X+rect.Width-sizeBtn.Width, 5295Rectangle itemRect = GetRectangle(mouseLoc.Y, mouseLoc.X); 5431entry.OutlineRect = Rectangle.Empty; 5454private Rectangle dragBaseRect = Rectangle.Empty; // the original bounds of our control. 5762Rectangle bGripRect = new Rectangle(0, Height - ResizeGripSize, ResizeGripSize, ResizeGripSize); 5763Rectangle tGripRect = new Rectangle(0, 0, ResizeGripSize, ResizeGripSize); 5832Rectangle newBounds = Bounds; 5902this.dragBaseRect = Rectangle.Empty; 5915Rectangle lRect = new Rectangle(0, resizeUp ? 0 : Height - ResizeGripSize, ResizeGripSize, ResizeGripSize); 6220public override Rectangle Bounds {
winforms\Managed\System\WinForms\PropertyStore.cs (6)
144public Rectangle GetRectangle(int key) { 151public Rectangle GetRectangle(int key, out bool found) { 167return Rectangle.Empty; 658public void SetRectangle(int key, Rectangle value) { 935public Rectangle Rectangle; 936public RectangleWrapper(Rectangle rectangle){
winforms\Managed\System\WinForms\RadioButton.cs (2)
328internal override Rectangle OverChangeRectangle { 346internal override Rectangle DownChangeRectangle {
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (13)
84public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) { 103Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 121public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, bool focused, RadioButtonState state) { 133public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state) { 137internal static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state, IntPtr hWnd) { 138Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd)); 165public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) { 179public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) { 183internal static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state, IntPtr hWnd) { 184Rectangle glyphBounds = new Rectangle(glyphLocation, GetGlyphSize(g, state, hWnd));
winforms\Managed\System\WinForms\RequestResizeEvent.cs (3)
22readonly Rectangle newRectangle; 32public ContentsResizedEventArgs(Rectangle newRectangle) { 42public Rectangle NewRectangle {
winforms\Managed\System\WinForms\RichTextBox.cs (2)
1808new public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) 3475OnContentsResized(new ContentsResizedEventArgs(Rectangle.FromLTRB(reqResize.rc.left, reqResize.rc.top, reqResize.rc.right, reqResize.rc.bottom)));
winforms\Managed\System\WinForms\Screen.cs (16)
34readonly Rectangle bounds; 39private Rectangle workingArea = Rectangle.Empty; 92bounds = Rectangle.FromLTRB(info.rcMonitor.left, info.rcMonitor.top, info.rcMonitor.right, info.rcMonitor.bottom); 167public Rectangle Bounds { 228public Rectangle WorkingArea { 249workingArea = Rectangle.FromLTRB(info.rcWork.left, info.rcWork.top, info.rcWork.right, info.rcWork.bottom); 326public static Screen FromRectangle(Rectangle rect) { 379public static Rectangle GetWorkingArea(Point pt) { 390public static Rectangle GetWorkingArea(Rectangle rect) { 401public static Rectangle GetWorkingArea(Control ctl) { 412public static Rectangle GetBounds(Point pt) { 422public static Rectangle GetBounds(Rectangle rect) { 432public static Rectangle GetBounds(Control ctl) {
winforms\Managed\System\WinForms\ScrollableControl.cs (28)
74private Rectangle displayRect = Rectangle.Empty; 185Rectangle rect = GetDisplayRectInternal(); 262public override Rectangle DisplayRectangle { 265Rectangle rect = base.ClientRectangle; 282Rectangle IArrangedElement.DisplayRectangle { 284Rectangle displayRectangle = this.DisplayRectangle; 399Rectangle display = GetDisplayRectInternal(); 406Rectangle client = ClientRectangle; 419private bool ApplyScrollbarChanges(Rectangle display) { 426Rectangle currentClient = ClientRectangle; 427Rectangle fullClient = currentClient; 428Rectangle minClient = fullClient; 556Rectangle bounds = current.Bounds; 590Rectangle clientToBe = fullClient; 639private Rectangle GetDisplayRectInternal() { 709Rectangle client = ClientRectangle; 724Rectangle client = ClientRectangle; 823Rectangle display = GetDisplayRectInternal(); 841Rectangle client = ClientRectangle; 846Rectangle displayRectangle = displayRect; 875Rectangle cr = ClientRectangle; 909Rectangle client = ClientRectangle; 945Rectangle client = ClientRectangle; 951Rectangle bounds = activeControl.Bounds; 1224Rectangle displayRect = this.displayRect; 1312Rectangle client = ClientRectangle; 1390Rectangle client = ClientRectangle;
winforms\Managed\System\WinForms\ScrollBar.cs (2)
667protected override Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ScrollBarRenderer.cs (10)
50public static void DrawArrowButton(Graphics g, Rectangle bounds, ScrollBarArrowButtonState state) { 63public static void DrawHorizontalThumb(Graphics g, Rectangle bounds, ScrollBarState state) { 76public static void DrawVerticalThumb(Graphics g, Rectangle bounds, ScrollBarState state) { 89public static void DrawHorizontalThumbGrip(Graphics g, Rectangle bounds, ScrollBarState state) { 102public static void DrawVerticalThumbGrip(Graphics g, Rectangle bounds, ScrollBarState state) { 115public static void DrawRightHorizontalTrack(Graphics g, Rectangle bounds, ScrollBarState state) { 128public static void DrawLeftHorizontalTrack(Graphics g, Rectangle bounds, ScrollBarState state) { 141public static void DrawUpperVerticalTrack(Graphics g, Rectangle bounds, ScrollBarState state) { 154public static void DrawLowerVerticalTrack(Graphics g, Rectangle bounds, ScrollBarState state) { 167public static void DrawSizeBox(Graphics g, Rectangle bounds, ScrollBarSizeBoxState state) {
winforms\Managed\System\WinForms\SplitContainer.cs (13)
80private Rectangle splitterRect; 93private Rectangle initialSplitterRectangle; 907public Rectangle SplitterRectangle { 909Rectangle r = splitterRect; 1179Rectangle r = CalcSplitLine(splitterDistance, 0); 1283Rectangle r = CalcSplitLine(GetSplitterDistance(e.X, e.Y), 0); 1546private Rectangle CalcSplitLine(int splitSize, int minWeight) { 1548Rectangle r = new Rectangle(); 1621private void DrawFocus(Graphics g, Rectangle r) { 1634Rectangle r = CalcSplitLine(splitSize, 3); 2379internal override Rectangle GetToolNativeScreenRectangle() { 2381Rectangle containerRectangle = base.GetToolNativeScreenRectangle(); 2382Rectangle splitterRectangle = this.SplitterRectangle;
winforms\Managed\System\WinForms\Splitter.cs (8)
450Rectangle bounds = spd.target.Bounds; 663private Rectangle CalcSplitLine(int splitSize, int minWeight) { 664Rectangle r = Bounds; 665Rectangle bounds = splitTarget.Bounds; 695Rectangle r = target.Bounds; 771Rectangle r = CalcSplitLine(splitSize, 3); 893Rectangle r = CalcSplitLine(GetSplitSize(e.X, e.Y), 0); 909Rectangle r = CalcSplitLine(GetSplitSize(e.X, e.Y), 0);
winforms\Managed\System\WinForms\StatusBar.cs (6)
898Rectangle rect = Bounds; 1039Rectangle r = Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom); 1101Rectangle bounds = Bounds; 1653public Rectangle rect = Rectangle.Empty;
winforms\Managed\System\WinForms\StatusBarDrawItemEvent.cs (2)
32public StatusBarDrawItemEventArgs(System.Drawing.Graphics g, Font font, Rectangle r, int itemId, 44public StatusBarDrawItemEventArgs(System.Drawing.Graphics g, Font font, Rectangle r, int itemId,
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
660this.parent.Invalidate(Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom));
winforms\Managed\System\WinForms\StatusStrip.cs (6)
222public Rectangle SizeGripBounds { 237return Rectangle.Empty; 376Rectangle displayRect = DisplayRectangle; 381Rectangle lastItemBounds = Rectangle.Empty; 557Rectangle sizeGripBounds = SizeGripBounds;
winforms\Managed\System\WinForms\SystemInformation.cs (3)
446public static Rectangle WorkingArea { 450return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 1031public static Rectangle VirtualScreen {
winforms\Managed\System\WinForms\TabControl.cs (20)
58private Rectangle cachedDisplayRect = Rectangle.Empty; 404public override Rectangle DisplayRectangle { 413Rectangle bounds = Bounds; 437Rectangle r = Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 1079cachedDisplayRect = Rectangle.Empty; 1239public Rectangle GetTabRect(int index) { 1252return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 1286cachedDisplayRect = Rectangle.Empty; 1352cachedDisplayRect = Rectangle.Empty; 1510cachedDisplayRect = Rectangle.Empty; 1544cachedDisplayRect = Rectangle.Empty; 1647cachedDisplayRect = Rectangle.Empty; 1712cachedDisplayRect = Rectangle.Empty; 1725Rectangle rect = DisplayRectangle; 1999cachedDisplayRect = Rectangle.Empty; 2016cachedDisplayRect = Rectangle.Empty; 2058OnDrawItem(new DrawItemEventArgs(g, Font, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), dis.itemID, (DrawItemState)dis.itemState)); 2128cachedDisplayRect = Rectangle.Empty;
winforms\Managed\System\WinForms\TableLayoutCellPaintEventArgs.cs (4)
23private Rectangle bounds; 28public TableLayoutCellPaintEventArgs(Graphics g, Rectangle clipRectangle, Rectangle cellBounds, int column, int row) : base(g, clipRectangle) { 36public Rectangle CellBounds {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (5)
416Rectangle displayRect = DisplayRectangle; 417Rectangle clipRect = e.ClipRectangle; 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 (3)
704Rectangle inflateRect = LayoutUtils.InflateRect(DisplayRectangle, Padding); 718Rectangle rectWithBorder = new Rectangle(inflateRect.X - 4, inflateRect.Y - 2, inflateRect.Width + 8, inflateRect.Height + 6); 743Rectangle r = parent.DisplayRectangle;
winforms\Managed\System\WinForms\TabRenderer.cs (20)
53public static void DrawTabItem(Graphics g, Rectangle bounds, TabItemState state) { 65public static void DrawTabItem(Graphics g, Rectangle bounds, bool focused, TabItemState state) { 72Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 84public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, TabItemState state) { 94public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, bool focused, TabItemState state) { 106public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, TextFormatFlags flags, bool focused, TabItemState state) { 112Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 127public static void DrawTabItem(Graphics g, Rectangle bounds, Image image, Rectangle imageRectangle, bool focused, TabItemState state) { 134Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 149public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, Image image, Rectangle imageRectangle, bool focused, TabItemState state) { 161public static void DrawTabItem(Graphics g, Rectangle bounds, string tabItemText, Font font, TextFormatFlags flags, Image image, Rectangle imageRectangle, bool focused, TabItemState state) { 168Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 187public static void DrawTabPage(Graphics g, Rectangle bounds) {
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\TextBoxRenderer.cs (10)
46private static void DrawBackground(Graphics g, Rectangle bounds, TextBoxState state) { 51Rectangle fillRect = visualStyleRenderer.GetBackgroundContentRectangle(g, bounds); 69public static void DrawTextBox(Graphics g, Rectangle bounds, TextBoxState state) { 80public static void DrawTextBox(Graphics g, Rectangle bounds, string textBoxText, Font font, TextBoxState state) { 90public static void DrawTextBox(Graphics g, Rectangle bounds, string textBoxText, Font font, Rectangle textBounds, TextBoxState state) { 100public static void DrawTextBox(Graphics g, Rectangle bounds, string textBoxText, Font font, TextFormatFlags flags, TextBoxState state) { 102Rectangle textBounds = visualStyleRenderer.GetBackgroundContentRectangle(g, bounds); 116public static void DrawTextBox(Graphics g, Rectangle bounds, string textBoxText, Font font, Rectangle textBounds, TextFormatFlags flags, TextBoxState state) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1455Rectangle bounds = Bounds;
winforms\Managed\System\WinForms\ToolBarButton.cs (3)
331public Rectangle Rectangle { 336return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 338return Rectangle.Empty;
winforms\Managed\System\WinForms\ToolStrip.cs (32)
66private Rectangle lastInsertionMarkRect = Rectangle.Empty; 267Rectangle bounds = CommonProperties.GetSpecifiedBounds(this); 846public override Rectangle DisplayRectangle { 849Rectangle rect = base.DisplayRectangle; 992public Rectangle GripRectangle { 994return (GripStyle == ToolStripGripStyle.Visible) ? Grip.Bounds : Rectangle.Empty; 1989Rectangle regionRect = (item == null) ? Rectangle.Empty : item.Bounds; 2028else if (regionRect != Rectangle.Empty) { 2047if (lastInsertionMarkRect != Rectangle.Empty) { 2052Rectangle invalidate = lastInsertionMarkRect; 2053lastInsertionMarkRect = Rectangle.Empty; 2838internal override void PrintToMetaFileRecursive(HandleRef hDC, IntPtr lParam, Rectangle bounds) { 3632Rectangle viewableArea = this.DisplayRectangle; 3685Rectangle clippingRect = e.ClipRectangle; 3686Rectangle bounds = item.Bounds; 3934if (lastInsertionMarkRect != Rectangle.Empty) { 3985internal void PaintInsertionMark(Rectangle insertionRect) { 4026Rectangle comparisonRect = new Rectangle(point, onePixel); 4027Rectangle bounds; 4284Rectangle gripRectangle = Rectangle.Empty; 4285Rectangle displayRect = DisplayRectangle; 4363Rectangle displayRect = this.DisplayRectangle; 4433Rectangle clientBounds = this.ClientRectangle; 4782void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) { 5479Rectangle insertionRect = Rectangle.Empty; 5499Rectangle insertionRect = owner.DisplayRectangle; 5510Rectangle bounds = owner.DisplayedItems[i].Bounds; 5541private RelativeLocation ComparePositions(Rectangle orig, Point check) {
winforms\Managed\System\WinForms\ToolStripArrowRenderEventArgs.cs (4)
15private Rectangle arrowRect = Rectangle.Empty; 23public ToolStripArrowRenderEventArgs(Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) { 33public Rectangle ArrowRectangle {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
684protected override void DrawFlatComboDropDown(ComboBox comboBox, Graphics g, Rectangle dropDownRect) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (5)
57Rectangle bounds = this.Bounds; 469Rectangle specifiedBounds = Rectangle.Empty; 483Rectangle bounds = control.Bounds; 813Rectangle bounds = LayoutUtils.Align(size, this.Bounds, ControlAlign);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (12)
524public new Rectangle GripRectangle { 1187internal override Rectangle ApplyBoundsConstraints(int suggestedX, int suggestedY, int proposedWidth, int proposedHeight) { 1188Rectangle adjustedBounds = base.ApplyBoundsConstraints(suggestedX, suggestedY, proposedWidth, proposedHeight); 1201internal Rectangle GetDropDownBounds(Rectangle suggestedBounds) { 1203Rectangle dropDownBounds; 1214Rectangle suggestedScreenBounds = new Rectangle(screenPoint, suggestedBounds.Size); 1239internal Rectangle CalculateDropDownLocation(Point start, ToolStripDropDownDirection dropDownDirection) { 1247Rectangle dropDownBounds = new Rectangle(Point.Empty, GetSuggestedSize()); 1443Rectangle bounds = this.Bounds; 1758Rectangle bounds = new Rectangle(x, y, width, height); 1934Rectangle bounds = this.Bounds;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (5)
180Rectangle dropDownArrowRect = (layout != null) ? layout.DropDownArrowRect :Rectangle.Empty; 238private Rectangle dropDownArrowRect = Rectangle.Empty; 308public Rectangle DropDownArrowRect {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (14)
102internal virtual Rectangle DropDownButtonArea { 121Rectangle bounds = GetDropDownBounds(dropDownDirection); 122Rectangle ownerItemBounds = new Rectangle(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size); 123Rectangle intersectionBetweenChildAndParent = Rectangle.Intersect(bounds, ownerItemBounds); 131int newIntersectionWidth = Rectangle.Intersect(GetDropDownBounds(newDropDownDirection), ownerItemBounds).Width; 310private Rectangle DropDownDirectionToDropDownBounds(ToolStripDropDownDirection dropDownDirection, Rectangle dropDownBounds) { 380private Rectangle GetDropDownBounds(ToolStripDropDownDirection dropDownDirection) { 382Rectangle dropDownBounds = new Rectangle(Point.Empty, DropDown.GetSuggestedSize()); 387Rectangle itemScreenBounds = new Rectangle(this.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), this.Size); 389if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Height > 1) { 394if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Width > 1) { 399if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Width > 1) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (23)
40private Rectangle checkRectangle = Rectangle.Empty; 41private Rectangle imageRectangle = Rectangle.Empty; 42private Rectangle arrowRectangle = Rectangle.Empty; 43private Rectangle textRectangle = Rectangle.Empty; 44private Rectangle imageMarginBounds = Rectangle.Empty; 105internal Rectangle ArrowRectangle { 111internal Rectangle CheckRectangle { 134public override Rectangle DisplayRectangle { 136Rectangle rect = base.DisplayRectangle; 160internal Rectangle ImageRectangle { 183internal Rectangle ImageMargin { 252internal Rectangle TextRectangle { 435imageRectangle = Rectangle.Empty; 519Rectangle displayRect = DisplayRectangle; 658Rectangle displayRectangle = this.DisplayRectangle; 667Rectangle adjustedLastItemBounds = this.Items[this.Items.Count - 1].Bounds; 688Rectangle adjustedLastItemBounds = this.Items[0].Bounds; 796Rectangle displayRectangle = this.DisplayRectangle;
winforms\Managed\System\WinForms\ToolStripGripRenderEventArgs.cs (1)
27public Rectangle GripBounds {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (11)
54 Rectangle bounds = e.GripBounds; 63 Rectangle[] shadowRects = new Rectangle[numRectangles]; 138 Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size); 142 Rectangle dropDownRect = item.DropDownButtonBounds; 227 Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 254 Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 313 Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size); 360 Rectangle imageRect = e.ImageRectangle; 393Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size); 420 Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size);
winforms\Managed\System\WinForms\ToolStripItem.cs (28)
51private Rectangle bounds = Rectangle.Empty; 584public virtual Rectangle Bounds { 592internal Rectangle ClientBounds { 594Rectangle client = bounds; 601public Rectangle ContentRectangle { 603Rectangle content = LayoutUtils.InflateRect(InternalLayout.ContentRectangle, this.Padding); 1119Rectangle currentBounds = this.Bounds; 1153Rectangle IArrangedElement.DisplayRectangle { 1185void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) { 2190Rectangle currentBounds = Bounds; 2449Rectangle currentBounds = this.Bounds; 2746public void Invalidate(Rectangle r) { 3617internal protected virtual void SetBounds(Rectangle bounds) { 3618Rectangle oldBounds = this.bounds; 3952Rectangle IKeyboardToolTip.GetNativeScreenRectangle() { 3956IList<Rectangle> IKeyboardToolTip.GetNeighboringToolsRectangles() { 3957List<Rectangle> neighbors = new List<Rectangle>(3); 4401public override Rectangle Bounds { 4403Rectangle bounds = Owner.Bounds; 4408return Rectangle.Empty; 4622public virtual Rectangle ImageRectangle { 4624Rectangle imageRect = LayoutData.imageBounds; 4652public virtual Rectangle TextRectangle { 4654Rectangle textRect = LayoutData.textBounds; 4660public virtual Rectangle ContentRectangle { 4693Rectangle bounds = new Rectangle(Point.Empty, ownerItem.Size);
winforms\Managed\System\WinForms\ToolStripItemImageRenderEventArgs.cs (5)
17private Rectangle imageRectangle = Rectangle.Empty; 21public ToolStripItemImageRenderEventArgs(Graphics g, ToolStripItem item, Rectangle imageRectangle) : base(g, item) { 30public ToolStripItemImageRenderEventArgs(Graphics g, ToolStripItem item, Image image, Rectangle imageRectangle) : base(g, item) { 50 public Rectangle ImageRectangle {
winforms\Managed\System\WinForms\ToolStripItemTextRenderEventArgs.cs (5)
20private Rectangle textRectangle = Rectangle.Empty; 33public ToolStripItemTextRenderEventArgs(Graphics g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, TextFormatFlags format) : base(g, item) { 49public ToolStripItemTextRenderEventArgs(Graphics g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, ContentAlignment textAlign) : base(g, item) { 121public Rectangle TextRectangle {
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
335Rectangle textRect = InternalLayout.TextRectangle;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (11)
1087Rectangle checkRectangle = menuItemInternalLayout.CheckRectangle; 1183internal protected override void SetBounds(Rectangle rect) { 1475public Rectangle ArrowRectangle { 1482Rectangle arrowRect = menu.ArrowRectangle; 1487return Rectangle.Empty; 1490public Rectangle CheckRectangle { 1495Rectangle checkRectangle = menu.CheckRectangle; 1505return Rectangle.Empty; 1508public override Rectangle ImageRectangle { 1516Rectangle imageRect = menu.ImageRectangle; 1533public override Rectangle TextRectangle {
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
100void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) {
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
120internal protected override void SetBounds(Rectangle bounds) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (10)
54private static Rectangle lastFeedbackRect = Rectangle.Empty; 205internal Rectangle DragBounds { 774public FeedbackRectangle(Rectangle bounds) { 822public FeedbackDropDown(Rectangle bounds) : base(){ 834Rectangle regionRect = bounds; //create a region the size of the client area 920Rectangle dragRect = Rectangle.Empty; 1204Rectangle bounds = LayoutUtils.InflateRect(row.Bounds, row.Margin); 1276Rectangle intersection = c1.Bounds;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (6)
33private Rectangle cachedBounds = Rectangle.Empty; 66public Rectangle CachedBounds { 260protected override void SetBoundsCore(Rectangle bounds, BoundsSpecified specified) { 268Rectangle displayRectangle = ToolStripPanelRow.DisplayRectangle; 336 if (ToolStripPanelRow != null && ToolStripPanelRow.Bounds == Rectangle.Empty) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (42)
22private Rectangle bounds = Rectangle.Empty; 86public Rectangle Bounds { 179public Rectangle DisplayRectangle { 315protected void OnBoundsChanged(Rectangle oldBounds, Rectangle newBounds) { 427Rectangle cachedBounds = c.CachedBounds; 445Rectangle cachedBounds = currentCell.CachedBounds; 472Rectangle cachedBounds = c.CachedBounds; 509Rectangle cachedBounds = c.CachedBounds; 527Rectangle cachedBounds = currentCell.CachedBounds; 554Rectangle cachedBounds = c.CachedBounds; 593private void SetBounds(Rectangle bounds) { 595Rectangle oldBounds = this.bounds; 639Rectangle IArrangedElement.DisplayRectangle { 641Rectangle displayRectangle = this.Bounds; 684void IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified) { 711internal Rectangle DragBounds { 790public virtual Rectangle DragBounds { 791get { return Rectangle.Empty; } 794public virtual Rectangle DisplayRectangle { 795get { return Rectangle.Empty; } 920protected internal virtual void OnBoundsChanged(Rectangle oldBounds, Rectangle newBounds) { 935public override Rectangle DisplayRectangle { 937Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle; 940Rectangle raftingDisplayRectangle = ToolStripPanel.DisplayRectangle; 957public override Rectangle DragBounds { 959Rectangle dragBounds = Row.Bounds; 963Rectangle previousRowBounds = ToolStripPanel.RowsInternal[index - 1].Bounds; 971Rectangle nextRowBounds = ToolStripPanel.RowsInternal[index + 1].Bounds; 1426protected internal override void OnBoundsChanged(Rectangle oldBounds, Rectangle newBounds) { 1446public override Rectangle DisplayRectangle { 1448Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle; 1451Rectangle raftingDisplayRectangle = ToolStripPanel.DisplayRectangle; 1465public override Rectangle DragBounds { 1467Rectangle dragBounds = Row.Bounds; 1472Rectangle previousRowBounds = ToolStripPanel.RowsInternal[index - 1].Bounds; 1480Rectangle nextRowBounds = ToolStripPanel.RowsInternal[index + 1].Bounds; 1744protected internal override void OnBoundsChanged(Rectangle oldBounds, Rectangle newBounds) {
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
41Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (60)
156Rectangle overflowArrowRect = Rectangle.Empty; 216Rectangle bounds = new Rectangle(Point.Empty, item.Size); 247Rectangle bounds = new Rectangle(Point.Empty, item.Size); 249Rectangle fillRect = (item.Selected) ? item.ContentRectangle : bounds; 260Rectangle buttonBounds = item.ButtonBounds; 272Rectangle dropDownRect = item.DropDownButtonBounds; 314Rectangle bounds = new Rectangle(Point.Empty, item.Size); 320Rectangle fillRect = (item.Selected) ? item.ContentRectangle :bounds; 375Rectangle bounds = new Rectangle(Point.Empty, toolStrip.Size); 406Rectangle edging = Rectangle.Empty; 432Rectangle bounds = e.GripBounds; 447Rectangle[] shadowRects = new Rectangle[numRectangles]; 492Rectangle bounds = new Rectangle(Point.Empty, item.Size); 527Rectangle fillRect = bounds; 570Rectangle fillRect = bounds; 611Rectangle bounds = e.AffectedBounds; 652Rectangle imageRect = e.ImageRectangle; 665if (imageRect != Rectangle.Empty && image != null) { 732Rectangle bounds = new Rectangle(Point.Empty, toolStrip.Size); 748Rectangle topLeftParentHorizontalPixels = new Rectangle(topLeft, onePix); 749Rectangle bottomLeftParentHorizontalPixels = new Rectangle(bottomLeft, new Size(2, 1)); 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); 757Rectangle topRightHorizontalPixels, topRightVerticalPixels; 836private void FillWithDoubleGradient(Color beginColor, Color middleColor, Color endColor, Graphics g, Rectangle bounds, int firstGradientWidth, int secondGradientWidth, LinearGradientMode mode, bool flipHorizontal) { 840Rectangle endGradient = bounds; 841Rectangle beginGradient = bounds; 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) : 935private void RenderPressedGradient(Graphics g, Rectangle bounds) { 958Rectangle bounds = new Rectangle(Point.Empty, item.Size); 960Rectangle fillRect = (item.Selected) ? item.ContentRectangle :bounds; 983Rectangle gradientBounds = new Rectangle(Point.Empty, parent.Size); 992Rectangle gradientBounds = new Rectangle(Point.Empty, control.Size); 1014Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1024Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1036Rectangle bounds = new Rectangle(Point.Empty, toolStripDropDown.Size); 1056Rectangle overflowBoundsFill = new Rectangle(Point.Empty, e.Item.Size); 1057Rectangle bounds = overflowBoundsFill; 1140Rectangle fillRect = new Rectangle(overflowBoundsFill.X - 1, 0, 1, 1); 1155Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1157Rectangle displayRect = toolStrip.DisplayRectangle; 1172Rectangle topLeftShadowRect = new Rectangle(topLeft, onePix); 1176Rectangle topLeftShadowRect2 = new Rectangle(topLeft, onePix); 1180Rectangle topRightShadowRect = new Rectangle(topRight, onePix); 1184Rectangle topRightShadowRect2 = topRightShadowRect; 1188Rectangle[] paintRects = new Rectangle[] { topLeftShadowRect, topLeftShadowRect2, topRightShadowRect, topRightShadowRect2 }; 1193paintRects[i] = Rectangle.Empty; 1211Rectangle otherBottom = new Rectangle(bottomLeft.X, bottomLeft.Y - 2, 1, 1); 1218private void RenderSelectedButtonFill(Graphics g, Rectangle bounds) { 1235private void RenderCheckedButtonFill(Graphics g, Rectangle bounds) { 1256private void RenderSeparatorInternal(Graphics g, ToolStripItem item, Rectangle bounds, bool vertical) { 1349private void RenderPressedButtonFill(Graphics g, Rectangle bounds) { 1371Rectangle bounds = new Rectangle(Point.Empty, item.Size); 1374Rectangle fillRect = (item.Selected) ? item.ContentRectangle :bounds; 1441private Point RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush) {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (14)
65private static Rectangle[] baseSizeGripRectangles = new Rectangle[] { new Rectangle(8,0,2,2), 708Rectangle dropDownRect = e.ArrowRectangle; 865Rectangle imageRect = e.ImageRectangle; 868if (imageRect != Rectangle.Empty && image != null) { 899Rectangle imageRect = e.ImageRectangle; 902if (imageRect != Rectangle.Empty && image != null) { 929Rectangle textRect = e.TextRectangle; 1025Rectangle sizeGripBounds = statusStrip.SizeGripBounds; 1028Rectangle[] whiteRectangles = new Rectangle[baseSizeGripRectangles.Length]; 1029Rectangle[] greyRectangles = new Rectangle[baseSizeGripRectangles.Length]; 1032Rectangle baseRect = baseSizeGripRectangles[i];
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (13)
20private Rectangle affectedBounds = Rectangle.Empty; 39public ToolStripRenderEventArgs(Graphics g, ToolStrip toolStrip, Rectangle affectedBounds, Color backColor) { 50public Rectangle AffectedBounds { 101public Rectangle ConnectedArea { 109return Rectangle.Empty; 113Rectangle itemBounds = new Rectangle(toolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size); 114Rectangle bounds = ToolStrip.Bounds; 116Rectangle overlap = ToolStrip.ClientRectangle; 123return Rectangle.Empty; 133return Rectangle.Empty; 136return Rectangle.Empty; 143return Rectangle.Empty;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
458internal protected override void SetBounds(Rectangle rect) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (16)
33private Rectangle dropDownButtonBounds = Rectangle.Empty; 37private Rectangle splitterBounds = Rectangle.Empty; 94public Rectangle ButtonBounds { 211internal override Rectangle DropDownButtonArea { 220public Rectangle DropDownButtonBounds { 357public Rectangle SplitterBounds { 368Rectangle dropDownButtonBounds = new Rectangle(Point.Empty, this.Size); 369Rectangle splitButtonButtonBounds = Rectangle.Empty; 640private void SetDropDownButtonBounds(Rectangle rect) { 767public override Rectangle ImageRectangle { 769Rectangle imageRect = base.ImageRectangle; 776public override Rectangle TextRectangle { 778Rectangle textRect = base.TextRectangle;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (25)
20private Rectangle displayRectangle = Rectangle.Empty; 214displayRectangle = Rectangle.Empty; 246Rectangle clientRectangle = toolStrip.ClientRectangle; 254Rectangle alignedLeftItems = Rectangle.Empty; 255Rectangle alignedRightItems = Rectangle.Empty; 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)); 367Rectangle bounds = LayoutUtils.VAlign(item.Size, displayRectangle, AnchorStyles.None); 389Rectangle clientRectangle = toolStrip.ClientRectangle; 394Rectangle alignedLeftItems = Rectangle.Empty; 395Rectangle alignedRightItems = Rectangle.Empty; 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)); 492Rectangle bounds = LayoutUtils.HAlign(item.Size, displayRectangle, AnchorStyles.None); 517Rectangle displayRect = displayRectangle; 518Rectangle itemBounds = new Rectangle(itemLocation, itemSize);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (16)
67private static void FillBackground(Graphics g, Rectangle bounds, Color backColor) { 176Rectangle bounds= e.AffectedBounds; 221Rectangle bounds = e.ToolStrip.ClientRectangle; 258Rectangle bounds = new Rectangle(Point.Empty, e.GripBounds.Size); 374Rectangle bounds = new Rectangle(Point.Empty, item.Size); 392Rectangle fillRect = new Rectangle(Point.Empty, item.Size); 466Rectangle bounds = new Rectangle(Point.Empty, splitButton.Size); 484Rectangle splitButtonBounds = splitButton.ButtonBounds; 499Rectangle fillRect = splitButton.ContentRectangle; 516Rectangle splitButtonButtonRect = splitButton.ButtonBounds; 520Rectangle fillRect = (splitButton.Selected) ? splitButton.ContentRectangle :bounds; 534Rectangle dropDownRect = splitButton.DropDownButtonBounds; 582Rectangle fillRect = item.ContentRectangle; 599private void RenderSeparatorInternal(Graphics g, ToolStripItem item, Rectangle bounds, bool vertical) { 661private void RenderSmall3DBorderInternal (Graphics g, Rectangle bounds, ToolBarState state, bool rightToLeft) { 702Rectangle fillRect = item.ContentRectangle;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (4)
167Rectangle bounds = CommonProperties.GetSpecifiedBounds(TextBox); 658private Rectangle AbsoluteClientRectangle { 661return Rectangle.FromLTRB(rect.top, rect.top, rect.right, rect.bottom); 869Rectangle clientRect = AbsoluteClientRectangle;
winforms\Managed\System\WinForms\ToolTip.cs (19)
1754Rectangle toolRectangle = tool.GetNativeScreenRectangle(); 1781private bool TryGetBubbleSize(IKeyboardToolTip tool, Rectangle toolRectangle, out Size bubbleSize) { 1796private Point GetOptimalToolTipPosition(IKeyboardToolTip tool, Rectangle toolRectangle, int width, int height) { 1801Rectangle[] possibleLocations = new Rectangle[LOCATION_TOTAL]; 1809IList<Rectangle> neighboringToolsRectangles = tool.GetNeighboringToolsRectangles(); 1816foreach (Rectangle neighboringToolRectangle in neighboringToolsRectangles) { 1817Rectangle intersection = Rectangle.Intersect(possibleLocations[i], neighboringToolRectangle); 1825Rectangle screenBounds = SystemInformation.VirtualScreen; 1828Rectangle locationAreaWithinScreen = Rectangle.Intersect(screenBounds, possibleLocations[i]); 1837Rectangle topContainerBounds = ((IKeyboardToolTip)this.TopLevelControl)?.GetNativeScreenRectangle() ?? Rectangle.Empty; 1840Rectangle locationWithinTopControlRectangle = Rectangle.Intersect(topContainerBounds, possibleLocations[i]); 1852Rectangle optimalLocation = possibleLocations[0]; 2602Rectangle bounds = new Rectangle(ps.rcPaint_left,ps.rcPaint_top, 2605if (bounds == Rectangle.Empty ) {
winforms\Managed\System\WinForms\TrackBar.cs (1)
460Rectangle r = Bounds;
winforms\Managed\System\WinForms\TrackBarRenderer.cs (10)
51public static void DrawHorizontalTrack(Graphics g, Rectangle bounds) { 64public static void DrawVerticalTrack(Graphics g, Rectangle bounds) { 77public static void DrawHorizontalThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) { 90public static void DrawVerticalThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) { 103public static void DrawLeftPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) { 116public static void DrawRightPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) { 129public static void DrawTopPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) { 142public static void DrawBottomPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) { 156public static void DrawHorizontalTicks(Graphics g, Rectangle bounds, int numTicks, EdgeStyle edgeStyle) { 187public static void DrawVerticalTicks(Graphics g, Rectangle bounds, int numTicks, EdgeStyle edgeStyle) {
winforms\Managed\System\WinForms\TreeNode.cs (8)
275public Rectangle Bounds { 279return Rectangle.Empty; 287return Rectangle.Empty; 289return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 298internal Rectangle RowBounds { 305return Rectangle.Empty; 310return Rectangle.Empty; 312return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom);
winforms\Managed\System\WinForms\TreeView.cs (4)
2727Rectangle bounds = node.RowBounds; 2825Rectangle bounds = node.Bounds; 2917Rectangle bounds = tn.Bounds; 3137Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\Triangle.cs (2)
42public static void Paint(Graphics g, Rectangle bounds, TriangleDirection dir, Brush backBr, 56Rectangle bounds)
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
1065public extern static IntPtr SendMessage(HandleRef hWnd, int Msg, int wParam, [In, Out] ref Rectangle lParam);
winforms\Managed\System\WinForms\UpDownBase.cs (19)
722internal override Rectangle ApplyBoundsConstraints(int suggestedX, int suggestedY, int proposedWidth, int proposedHeight) { 802Rectangle editBounds = upDownEdit.Bounds; 805Rectangle bounds = ClientRectangle; 806Rectangle clipBounds = e.ClipRectangle; 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); 825Rectangle backRect = editBounds; 838Rectangle backRect = editBounds; 1090Rectangle upDownEditBounds = Rectangle.Empty, 1091upDownButtonsBounds = Rectangle.Empty; 1093Rectangle clientArea = new Rectangle(Point.Empty, ClientSize); 1570Rectangle rect = ClientRectangle; 1613Rectangle rectUp = ClientRectangle, rectDown = ClientRectangle; 1735Rectangle clientRect = ClientRectangle; 1907public override Rectangle Bounds { 1911Rectangle bounds = ((UpDownButtons)parent.Owner).Bounds;
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (33)
275public void DrawBackground(IDeviceContext dc, Rectangle bounds) { 279internal void DrawBackground(IDeviceContext dc, Rectangle bounds, IntPtr hWnd) { 306public void DrawBackground(IDeviceContext dc, Rectangle bounds, Rectangle clipRectangle) { 310internal void DrawBackground(IDeviceContext dc, Rectangle bounds, Rectangle clipRectangle, IntPtr hWnd) { 340public Rectangle DrawEdge(IDeviceContext dc, Rectangle bounds, Edges edges, EdgeStyle style, EdgeEffects effects) { 364return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 374public void DrawImage(Graphics g, Rectangle bounds, Image image) { 397public void DrawImage(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex) { 436public void DrawParentBackground(IDeviceContext dc, Rectangle bounds, Control childControl) { 463public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw) { 473public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw, bool drawDisabled) { 483public void DrawText(IDeviceContext dc, Rectangle bounds, string textToDraw, bool drawDisabled, TextFormatFlags flags) { 508public Rectangle GetBackgroundContentRectangle(IDeviceContext dc, Rectangle bounds) { 513return Rectangle.Empty; 523return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 532public Rectangle GetBackgroundExtent(IDeviceContext dc, Rectangle contentBounds) { 537return Rectangle.Empty; 547return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 560public Region GetBackgroundRegion(IDeviceContext dc, Rectangle bounds) { 774public Size GetPartSize(IDeviceContext dc, Rectangle bounds, ThemeSizeType type) { 865public Rectangle GetTextExtent(IDeviceContext dc, string textToDraw, TextFormatFlags flags) { 881return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 890public Rectangle GetTextExtent(IDeviceContext dc, Rectangle bounds, string textToDraw, TextFormatFlags flags) { 906return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 938public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, Point pt, HitTestOptions options) { 962public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options) { 981public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, IntPtr hRgn, Point pt, HitTestOptions options) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
217new public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
winforms\Managed\System\WinForms\WinFormsUtils.cs (9)
90internal static Rectangle ConstrainToScreenWorkingAreaBounds(Rectangle bounds) { 96internal static Rectangle ConstrainToScreenBounds(Rectangle bounds) { 100internal static Rectangle ConstrainToBounds(Rectangle constrainingBounds, Rectangle bounds) { 605Rectangle translatedBounds; 609public DCMapping(HandleRef hDC, Rectangle bounds) {
System.Windows.Forms.DataVisualization (80)
Common\General\AxisScaleSegments.cs (1)
707 breakPosition = Rectangle.Round(graph.GetAbsoluteRectangle(breakPosition));
Common\General\ChartGraphics.cs (8)
1812common.HotRegionsList.AddHotRegion(Rectangle.Round(absPosition), label, ChartElementType.AxisLabels, false, true); 1978RectangleF labelRect = Rectangle.Empty; 2331Rectangle.Round(imageRect), 2417 Rectangle absPositionRounded = Rectangle.Round(absPosition); 2556 Rectangle absPositionRounded = Rectangle.Round(absPosition); 5150 path.AddPie(Rectangle.Round(gradientPath), startAngle, sweepAngle);
Common\General\ChartRenderingEngine.cs (2)
162 Rectangle destRect, 384 Rectangle destRect,
Common\General\GdiGraphics.cs (2)
119 Rectangle destRect, 264 Rectangle destRect,
Common\General\Legend.cs (33)
353 private Rectangle _titlePosition = Rectangle.Empty; 356 private Rectangle _headerPosition = Rectangle.Empty; 380 private Rectangle _legendItemsAreaPosition = Rectangle.Empty; 442 Rectangle legendPosition = Rectangle.Round(chartGraph.GetAbsoluteRectangle(legendPositionRel)); 466 this._titlePosition = Rectangle.Empty; 490 this._headerPosition = Rectangle.Empty; 735 Rectangle cellPosition = this.GetCellPosition(currentColumn, currentRow, cellIndex, itemHalfSpacing); 744 Rectangle overlappedCellPosition = this.GetCellPosition(currentColumn, currentRow, cellIndex + spanIndex, itemHalfSpacing); 759 Rectangle.Empty, 800 private Rectangle GetCellPosition( 806 Rectangle cellPosition = this._legendItemsAreaPosition; 2386 chartGraph.GetRelativeRectangle(Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF()))), 2458 Rectangle separatorPosition = Rectangle.Empty; 2492 Rectangle separatorRect = Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF())); 4039 Rectangle legendPosition = Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF())); 4072 Rectangle rect = this._headerPosition; 4096 Rectangle fillRect = rect; 4213 Rectangle separatorRect = this._headerPosition; 4233 chartGraph.GetRelativeRectangle(Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF()))), 4271 Rectangle legendPosition = Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF())); 4286 Rectangle fillRect = this._titlePosition; 4315 Rectangle rect = this._titlePosition; 4332 Rectangle separatorPosition = this._titlePosition; 4347 chartGraph.GetRelativeRectangle(Rectangle.Round(chartGraph.GetAbsoluteRectangle(this.Position.ToRectangleF()))), 4432 Rectangle position)
Common\General\LegendColumns.cs (13)
877 internal Rectangle cellPosition = Rectangle.Empty; 881 internal Rectangle cellPositionWithMargins = Rectangle.Empty; 1438 Rectangle position, 2092 Rectangle imagePosition = Rectangle.Empty; 2103 Rectangle imageCellPosition = this.cellPosition; 2221 Rectangle seriesMarkerPosition = this.cellPosition; 2287 Rectangle imageScale = Rectangle.Empty; 2427 Rectangle imageScale = Rectangle.Empty;
Common\General\Selection.cs (4)
2535path.AddRectangle(Rectangle.Round(rect)); 2822rect = Rectangle.Empty; 2859rect = Rectangle.Empty; 2872rect = Rectangle.Empty;
WinForm\ChartWinControl.cs (7)
638 InvalidateEventArgs e = new InvalidateEventArgs(Rectangle.Empty); 647public new void Invalidate(Rectangle rectangle) 660 InvalidateEventArgs e = new InvalidateEventArgs(Rectangle.Empty); 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);
WinForm\Utilities\AccessibleObject.cs (7)
257public Rectangle GetChildBounds(object chartElement, ChartElementType chartElementType, string seriesName, int pointIndex) 260Rectangle result = Rectangle.Empty; 312Rectangle rect = Rectangle.Round(bounds); 347result = Rectangle.Union(result, rect); 467public override Rectangle Bounds
WinForm\Utilities\Printing.cs (3)
132public void PrintPaint(Graphics graphics, Rectangle position) 249Rectangle marginPixel = ev.MarginBounds; 261Rectangle chartPosition = new Rectangle(marginPixel.X, marginPixel.Y, _chartImage.Width, _chartImage.Height);
System.Workflow.Activities (61)
Designers\ConditionalDesigner.cs (5)
94Rectangle bounds = Bounds; 95Rectangle imageRectangle = ImageRectangle; 97Rectangle diamondRectangle = Rectangle.Empty; 117private GraphicsPath GetDiamondPath(Rectangle rectangle)
Designers\ListenDesigner.cs (4)
74Rectangle bounds = Bounds; 75Rectangle imageRectangle = ImageRectangle; 77Rectangle roundRectangle = Rectangle.Empty;
Designers\SetStateDesigner.cs (7)
40protected override Rectangle TextRectangle 45Rectangle textRectangle = base.TextRectangle; 51protected override Rectangle ImageRectangle 56Rectangle imageRectangle = base.ImageRectangle; 85internal Rectangle TargetStateRectangle 91Rectangle bounds = this.Bounds; 92Rectangle textRectangle = this.TextRectangle;
Designers\StateDesigner.CommentLayoutGlyph.cs (3)
36public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 41Rectangle bounds = _layout.Bounds; 59Rectangle bounds = GetBounds(designer, false);
Designers\StateDesigner.cs (15)
320protected override Rectangle ExpandButtonRectangle 324return Rectangle.Empty; 399protected override Rectangle ImageRectangle 410protected override Rectangle TextRectangle 415return Rectangle.Empty; 701internal ReadOnlyCollection<Rectangle> EventHandlersBounds 705List<Rectangle> excluded = new List<Rectangle>(); 708Rectangle bounds = layout.Bounds; 801Rectangle bounds = this.Bounds; 812Rectangle bounds = this.Bounds; 1415Rectangle moveBounds = Rectangle.Empty; 1430moveBounds = Rectangle.Union(moveBounds, stateDesigner.Bounds); 1502Rectangle bounds = designer.Bounds;
Designers\StateDesigner.Layouts.cs (12)
120public Rectangle Bounds 403public Rectangle ImageRectangle 407Rectangle rectangle = new Rectangle(_imageLocation, _imageSize); 412public Rectangle TextRectangle 416Rectangle rectangle = new Rectangle(_textLocation, _textSize); 511Rectangle layoutBounds = this.Bounds; 522Rectangle layoutBounds = this.Bounds; 710Rectangle bounds = this.Bounds; 808Rectangle separatorRectangle = new Rectangle( 993Rectangle rectangle = this.Bounds; 1205Rectangle rectangle = new Rectangle(location, size); 1362Rectangle bounds = this.Bounds;
Designers\StateDesigner.LayoutSelectionGlyph.cs (1)
55public override Rectangle GetBounds(ActivityDesigner designer, bool activated)
Designers\StateDesignerConnector.cs (4)
116protected override ICollection<Rectangle> ExcludedRoutingRectangles 121List<Rectangle> excluded = new List<Rectangle>(base.ExcludedRoutingRectangles); 229Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height);
Designers\StateMachineDesignerPaint.cs (4)
55internal static Rectangle TrimRectangle(Rectangle rectangle, Rectangle bounds) 423internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Rectangle bounds, ActivityDesignerTheme designerTheme)
Designers\WhileDesigner.cs (5)
41Rectangle bounds = Bounds; 42Rectangle textRectangle = TextRectangle; 43Rectangle imageRectangle = ImageRectangle; 68protected override Rectangle[] GetConnectors() 70Rectangle[] connectors = base.GetConnectors();
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
440Rectangle listboxRectangle = new Rectangle(locationInDialog, this.listBoxAutoComplete.Size);
System.Workflow.ComponentModel (554)
AuthoringOM\Design\ActivityDesigner.cs (44)
259public Rectangle Bounds 404protected virtual Rectangle SmartTagRectangle 408Rectangle smartTagRectangle = Rectangle.Empty; 410Rectangle imageRectangle = ImageRectangle; 527protected virtual Rectangle TextRectangle 533return Rectangle.Empty; 538Rectangle bounds = Bounds; 539Rectangle textRectangle = Rectangle.Empty; 551protected virtual Rectangle ImageRectangle 557return Rectangle.Empty; 562Rectangle bounds = Bounds; 563Rectangle imageRectangle = Rectangle.Empty; 942Rectangle bounds = Bounds; 947Rectangle hitRectangle = new Rectangle(bounds.Left, bounds.Top, bounds.Left - bounds.Left, bounds.Height); 1032public void Invalidate(Rectangle rectangle) 1037rectangle = Rectangle.Intersect(Bounds, rectangle); 1071Rectangle bounds = Bounds; 1072Rectangle viewPort = new Rectangle(bounds.Location, new Size(bounds.Width + 1, bounds.Height + 1)); 1176Rectangle bounds = Bounds; 1575Rectangle rectangle = smartTag.GetBounds(this, true); 1576Rectangle textRectangle = TextRectangle; 1578rectangle = Rectangle.Union(textRectangle, rectangle); 1841protected void ShowInPlaceTip(string infoTip, Rectangle rectangle) 1891protected Rectangle RectangleToScreen(Rectangle rectangle) 1902internal Rectangle InternalRectangleToScreen(Rectangle rectangle) 1912protected Rectangle RectangleToLogical(Rectangle rectangle) 2928void IWorkflowDesignerMessageSink.OnResizing(DesignerEdges sizingEdge, Rectangle bounds) 2961bool IWorkflowDesignerMessageSink.OnPaint(PaintEventArgs e, Rectangle viewPort) 2965Rectangle bounds = Bounds; 3015bool IWorkflowDesignerMessageSink.OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort) 3031public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 3033Rectangle smartTagRectangle = Rectangle.Empty; 3034Rectangle rectangle = designer.SmartTagRectangle; 3061Rectangle activatedBounds = GetBounds(designer, true); 3094Rectangle imageRectangle = activatedBounds; 3101Rectangle dropDownRectangle = activatedBounds; 3118Rectangle bounds = GetBounds(designer, true);
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (1)
53public override Rectangle Bounds
AuthoringOM\Design\ActivityPreviewDesigner.cs (14)
294protected internal override Rectangle[] GetConnectors() 297return new Rectangle[] { }; 307Rectangle[] connectors = base.GetConnectors(); 332Rectangle itemBounds = this.previewStrip.GetItemBounds(itemInfo); 513protected override Rectangle[] GetDropTargets(Point dropPoint) 571Rectangle bounds = Bounds; 580Rectangle previewStripRectangle = this.previewStrip.Bounds; 792Rectangle[] dropTargets = this.previewStrip.DropTargets; 797Rectangle dropConnector = dropTargets[activeDropTarget]; 932public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 934Rectangle itemBounds = this.parentDesigner.previewStrip.GetItemBounds(this.item); 963public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 983public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 985Rectangle rectangle = this.parentDesigner.previewStrip.GetItemBounds(this.item);
AuthoringOM\Design\CompositeActivityDesigner.cs (20)
227protected virtual Rectangle ExpandButtonRectangle 232return Rectangle.Empty; 236return Rectangle.Empty; 240Rectangle bounds = Bounds; 243Rectangle expandButtonRectangle = new Rectangle(bounds.Location, designerTheme.ExpandButtonSize); 260Rectangle expandButtonRectangle = ExpandButtonRectangle; 261Rectangle textRectangle = TextRectangle; 262Rectangle imageRectangle = ImageRectangle; 285protected override Rectangle ImageRectangle 290return Rectangle.Empty; 294return Rectangle.Empty; 296Rectangle bounds = Bounds; 302Rectangle imageRectangle = new Rectangle(bounds.Location, imageSize); 320protected override Rectangle TextRectangle 325return Rectangle.Empty; 329return Rectangle.Empty; 331Rectangle bounds = Bounds; 354Rectangle textRectangle = new Rectangle(bounds.Location, textSize); 676public static ActivityDesigner[] GetIntersectingDesigners(ActivityDesigner topLevelDesigner, Rectangle rectangle) 1236Rectangle expandButtonRectangle = ExpandButtonRectangle;
AuthoringOM\Design\Connector.cs (27)
128public virtual Rectangle Bounds 137Rectangle enclosingBounds = new Rectangle(new Point(location.X - size.Width / 2, location.Y - size.Height / 2), size); 142return Rectangle.Empty; 171internal static void Draw(ActivityDesignerPaintEventArgs e, Rectangle bounds) 310public Rectangle Bounds 314Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(new List<Point>(ConnectorSegments).ToArray()); 396protected internal virtual ICollection<Rectangle> ExcludedRoutingRectangles 400return new Rectangle[] { }; 518Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height); 749public override Rectangle Bounds 754Rectangle bounds = this.connector.Bounds; 1078Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(GetPointsFromEditPoints(this.editPoints).ToArray()); 1491public Rectangle Bounds 1515public static Point[] Route(IServiceProvider serviceProvider, object source, object target, ICollection<Rectangle> userDefinedRoutingObstacles) 1518List<Rectangle> rectanglesToExclude; 1537routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, ambientTheme.Margin, rootDesigner.Bounds, new Rectangle[] { }, linesToExclude.ToArray(), new Point[] { }); 1550public static void GetRoutingObstacles(IServiceProvider serviceProvider, object source, object target, out List<Rectangle> rectanglesToExclude, out List<Point> linesToExclude, out List<Point> pointsToExclude) 1595rectanglesToExclude = new List<Rectangle>(); 1608Rectangle rectangleToExclude = activityDesigner.Bounds; 1659Rectangle bounds = designer.Bounds; 1814public static Point[] Route(Point begin, Point end, Size margin, Rectangle enclosingRectangle, Rectangle[] rectanglesToExclude, Point[] linesToExclude, Point[] pointsToExclude) 1816List<Rectangle> excludedRectangles = new List<Rectangle>(rectanglesToExclude); 1839private static Point[] GetRoutedLineSegments(Point begin, Point end, Size margin, Rectangle[] rectanglesToExclude, Point[] linesToExclude) 2787public CoverSet(Rectangle[] rectanglesToExclude, Point[] linesToExclude) 2789foreach (Rectangle rectangle in rectanglesToExclude)
AuthoringOM\Design\DesignerHelpers.cs (36)
92public static void DrawText(Graphics graphics, Font font, string text, Rectangle boundingRect, StringAlignment alignment, TextQuality textQuality, Brush textBrush) 130public static void DrawImage(Graphics graphics, Image image, Rectangle destination, DesignerContentAlignment alignment) 138internal static void DrawImage(Graphics graphics, Image image, Rectangle destination, float transparency) 156public static void DrawImage(Graphics graphics, Image image, Rectangle destination, Rectangle source, DesignerContentAlignment alignment, float transparency, bool grayscale) 173Rectangle imageRectangle = GetRectangleFromAlignment(alignment, destination, source.Size); 197internal static Rectangle GetRectangleFromAlignment(DesignerContentAlignment alignment, Rectangle destination, Size size) 200return Rectangle.Empty; 202Rectangle rectangle = Rectangle.Empty; 232internal static void DrawSelection(Graphics graphics, Rectangle boundingRect, bool isPrimary, Size selectionSize, Rectangle[] grabHandles) 241Rectangle selectionRect = boundingRect; 255internal static void DrawGrabHandles(Graphics graphics, Rectangle[] grabHandles, bool isPrimary) 257foreach (Rectangle grabHandle in grabHandles) 290public static void Draw3DButton(Graphics graphics, Image image, Rectangle bounds, float transparency, ButtonState buttonState) 326internal static void DrawGrid(Graphics graphics, Rectangle viewableRectangle) 366public static void DrawExpandButton(Graphics graphics, Rectangle boundingRect, bool drawExpanded, CompositeDesignerTheme compositeDesignerTheme) 392public static void DrawRoundedRectangle(Graphics graphics, Pen drawingPen, Rectangle rectangle, int radius) 420internal static void DrawDropShadow(Graphics graphics, Rectangle shadowSourceRectangle, Color baseColor, int shadowDepth, LightSourcePosition lightSourcePosition, float lightSourceIntensity, bool roundEdges) 435Rectangle shadowRectangle = shadowSourceRectangle; 496Rectangle designerBounds = designer.Bounds; 505Rectangle bounds = new Rectangle(0, 0, Convert.ToInt32(Math.Ceiling(boundsF.Width)), Convert.ToInt32(Math.Ceiling(boundsF.Height))); 541Rectangle bounds = designer.Bounds; 581Rectangle bounds = activityDesigner.Bounds; 747public static GraphicsPath GetRoundedRectanglePath(Rectangle rectangle, int radius) 770internal static GraphicsPath GetScrollIndicatorPath(Rectangle bounds, ScrollButton button) 820internal static GraphicsPath[] GetPagePaths(Rectangle pageBounds, int pageFoldSize, DesignerContentAlignment foldAlignment) 1023internal void DrawGrid(HPen majorGridPen, HPen minorGridPen, Rectangle viewableRectangle, Size gridUnit, bool showMinorGrid) 1834internal static DesignerEdges ClosestEdgeToPoint(Point point, Rectangle rect, DesignerEdges edgesToConsider) 1877internal static Rectangle RectangleFromLineSegments(Point[] segments) 1881return Rectangle.Empty; 1894Rectangle enclosingRect = new Rectangle(leftTop, new Size(rightBottom.X - leftTop.X, rightBottom.Y - leftTop.Y)); 1902Rectangle rect = RectangleFromLineSegments(line); 1916internal static double DistanceFromPointToRectangle(Point point, Rectangle rect)
AuthoringOM\Design\DesignerInterfaces.cs (19)
145void OnResizing(DesignerEdges sizingEdge, Rectangle bounds); 148bool OnPaint(PaintEventArgs e, Rectangle viewPort); 149bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort); 158public Rectangle LogicalViewPort; 361private Rectangle clipRectangle; 362private Rectangle viewPort; 365public ActivityDesignerPaintEventArgs(Graphics graphics, Rectangle clipRectangle, Rectangle viewPort, ActivityDesignerTheme designerTheme) 368this.clipRectangle = Rectangle.Inflate(clipRectangle, 1, 1); 387public Rectangle ClipRectangle 417internal Rectangle ViewPort 432private Rectangle newBounds; 434public ActivityDesignerResizeEventArgs(DesignerEdges sizingEdge, Rectangle newBounds) 448public Rectangle Bounds 634public virtual Rectangle Bounds 641return Rectangle.Empty; 713public override Rectangle Bounds 721Rectangle[] connectors = sequentialActivityDesigner.GetConnectors(); 726return Rectangle.Empty;
AuthoringOM\Design\DesignerWidgets.cs (113)
138Rectangle bounds = Bounds; 157Rectangle buttonBounds = GetButtonBounds(scrollButton); 195Rectangle bounds = Bounds; 211Rectangle itemRectangle = GetItemBounds(itemInfo); 257private Rectangle bounds = Rectangle.Empty; 334Rectangle leftScrollButtonBounds = GetButtonBounds(ScrollButton.Left); 386public Rectangle Bounds 473protected Rectangle GetButtonBounds(ScrollButton scrollButton) 475Rectangle buttonRectangle = Rectangle.Empty; 511Rectangle buttonBounds = GetButtonBounds(scrollButton); 519Rectangle buttonBounds = GetButtonBounds(scrollButton); 572private Rectangle bounds = Rectangle.Empty; 666public Rectangle Bounds 704public Rectangle GetItemBounds(ItemInfo itemInfo) 708return Rectangle.Empty; 710Rectangle itemRectangle = Rectangle.Empty; 1045private List<Rectangle> itemRectangles = new List<Rectangle>(); 1048private Rectangle workingRectangle = Rectangle.Empty; //this rectangle we would be fitting the form into 1054private Rectangle formRectangle; 1055private Rectangle leftGradientRectangle; 1235Rectangle itemBounds = GetItemBounds(i); 1260Rectangle textRectangle = new Rectangle(itemBounds.Left + 20 + 5 + 2, itemBounds.Top + 1, this.itemWidth - (20 + 5 + 4), this.itemHeight - 3); 1292Rectangle bounds = this.formRectangle; 1301Rectangle screenRect = Rectangle.Empty; 1304screenRect = Rectangle.Union(screenRect, screen.Bounds); 1332this.leftGradientRectangle = Rectangle.Empty; 1382private Rectangle GetItemBounds(int index) 1385return Rectangle.Empty; 1421Rectangle rectangle = this.parent.formRectangle; 1616Rectangle rectangle = ClientRectangle; 1660private Rectangle selectedTabBounds = Rectangle.Empty; 1662public TabSelectionChangeEventArgs(ItemInfo previousItem, ItemInfo currentItem, Rectangle selectedTabBounds) 1668public Rectangle SelectedTabBounds 1771Rectangle tabItemBounds = GetTabItemRectangle(currentTab); 1832Rectangle buttonRectangle = GetTabItemRectangle(tabItemInfo); 1849Rectangle buttonRectangle = GetTabItemRectangle(tabItemInfo); 1895Rectangle tabItemRectangle = drawTabItem.TabItemRectangle; 1913Rectangle tabImageRectangle = GetTabImageRectangle(tabItem); 1917Rectangle tabTextRectangle = GetTabTextRectangle(tabItem); 1986this.drawItems[i].TabItemRectangle = Rectangle.Empty; 2066private Rectangle GetTabItemRectangle(ItemInfo tabItemInfo) 2075return Rectangle.Empty; 2078private Rectangle GetTabImageRectangle(ItemInfo tabItemInfo) 2084Rectangle imageRectangle = Rectangle.Empty; 2095private Rectangle GetTabTextRectangle(ItemInfo tabItemInfo) 2101Rectangle textRectangle = Rectangle.Empty; 2107Rectangle imageRectangle = GetTabImageRectangle(tabItemInfo); 2123textRectangle = Rectangle.Empty; 2133public Rectangle TabItemRectangle; 2153private Rectangle inplaceTipRectangle; 2228public void SetText(string text, Rectangle rectangle) 2367public void UpdateToolTipRectangle(Rectangle rectangle) 2424private Rectangle bounds = Rectangle.Empty; 2522public Rectangle[] DropTargets 2529Rectangle stripRectangle = StripRectangle; 2530Rectangle[] rectangles = new Rectangle[this.items.Count + 1]; 2548public Rectangle GetItemBounds(ItemInfo itemInfo) 2552return Rectangle.Empty; 2555return Rectangle.Empty; 2557Rectangle stripRectangle = StripRectangle; 2558Rectangle itemRectangle = Rectangle.Empty; 2595public Rectangle Bounds 2676Rectangle stripRectangle = StripRectangle; 2690Rectangle scrollbuttonRectangle = GetButtonBounds(ScrollButton.Left); 2714Rectangle itemRectangle = GetItemBounds(this.items[itemIndex]); 2739Rectangle imageRectangle = Rectangle.Empty; 2754Rectangle[] dropTargets = DropTargets; 2822private Rectangle StripRectangle 2826Rectangle stripRectangle = Rectangle.Empty; 2827Rectangle scrollLeftButton = GetButtonBounds(ScrollButton.Left); 2828Rectangle scrollRightButton = GetButtonBounds(ScrollButton.Right); 2839private Rectangle GetButtonBounds(ScrollButton scrollButton) 2843return Rectangle.Empty; 2850Rectangle scrollRectangle = Rectangle.Empty; 2930public override Rectangle Bounds 2934Rectangle bounds = Rectangle.Empty; 2946bounds = (index >= 0 && index < this.itemStrip.Items.Count) ? this.itemStrip.GetItemBounds(this.itemStrip.Items[index]) : Rectangle.Empty; 3197private Rectangle bounds = Rectangle.Empty; 3198private Rectangle canvasBounds = Rectangle.Empty; 3199private Rectangle previewModeButtonRectangle = Rectangle.Empty; 3200private Rectangle previewModeDescRectangle = Rectangle.Empty; 3221public Rectangle Bounds 3401public void Draw(Graphics graphics, Rectangle viewPort) 3426Rectangle canvasRect = this.canvasBounds; 3443Rectangle descriptionRectangle = this.canvasBounds; 3457Rectangle destnRectangle = Rectangle.Empty; 3473Rectangle indicatorBounds = this.canvasBounds; 3481Rectangle previewDesignerViewPort = PreviewDesigner.Bounds; 3502private Rectangle PreviewModeButtonRectangle 3591public override Rectangle Bounds 3595Rectangle bounds = this.previewWindow.PreviewModeButtonRectangle;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
509Rectangle lineRectangle = new Rectangle(this.ClientRectangle.Left, this.artifactLabel.Bottom + ((this.typeNameTableLayoutPanel.Top + this.typeTextBox.Top - this.artifactLabel.Bottom) / 2), this.ClientRectangle.Width, 1);
AuthoringOM\Design\FreeFormDesigner.cs (13)
259Rectangle childRectangle = GetEnclosingRectangle(); 786Rectangle childRectangle = GetEnclosingRectangle(); 811Rectangle bounds = Bounds; 820Rectangle childRectangle = GetEnclosingRectangle(); 931Rectangle minRectangle = GetEnclosingRectangle(); 934Rectangle bounds = Rectangle.Empty; 1039internal static void SetDesignerBounds(ActivityDesigner designer, Rectangle bounds) 1109private Rectangle GetEnclosingRectangle() 1136Rectangle enclosingRectangle = Rectangle.Empty; 1263public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 1267return Rectangle.Empty;
AuthoringOM\Design\Glyphs\CommentGlyph.cs (3)
30public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 35Rectangle bounds = designer.Bounds; 50Rectangle bounds = GetBounds(designer, activated);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (5)
45public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 53Rectangle bounds = new Rectangle(configErrorLocation, configErrorSize); 67Rectangle bounds = GetBounds(designer, false); 68Rectangle activatedBounds = GetBounds(designer, activated); 114Rectangle bounds = GetBounds(designer, false);
AuthoringOM\Design\Glyphs\ConnectionPointGlyph.cs (3)
25Rectangle viewPort = (workflowView != null) ? workflowView.ViewPortRectangle : Rectangle.Empty; 26Rectangle clipRectangle = (designer.ParentDesigner != null) ? designer.ParentDesigner.Bounds : designer.Bounds;
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
24public override Rectangle GetBounds(ActivityDesigner designer, bool activated)
AuthoringOM\Design\Glyphs\LockedActivityGlyph.cs (3)
34public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 39Rectangle bounds = designer.Bounds; 54Rectangle bounds = GetBounds(designer, activated);
AuthoringOM\Design\Glyphs\ReadOnlyActivityGlyph.cs (3)
18public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 23Rectangle bounds = designer.Bounds; 38Rectangle bounds = GetBounds(designer, activated);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (7)
15public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 20Rectangle rectangle = designer.Bounds; 40public virtual Rectangle[] GetGrabHandles(ActivityDesigner designer) 44Rectangle selectionRect = GetBounds(designer, false); 51Rectangle[] grabHandles = null; 54grabHandles = new Rectangle[8]; 67grabHandles = new Rectangle[1];
AuthoringOM\Design\Glyphs\ShadowGlyph.cs (3)
26public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 31Rectangle bounds = designer.Bounds; 38Rectangle bounds = GetBounds(designer, activated);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (11)
28Rectangle[] scrollIndicatorRectangles = ScrollIndicatorRectangles; 29foreach (Rectangle rectangle in scrollIndicatorRectangles) 64protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 87Rectangle[] scrollIndicatorRectangles = ScrollIndicatorRectangles; 88foreach (Rectangle rectangle in scrollIndicatorRectangles) 112Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.ViewPortSize); 149private Rectangle[] ScrollIndicatorRectangles 153Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.ViewPortSize); 157Rectangle[] scrollIndicatorRectangles = new Rectangle[4]; 212Rectangle[] scrollIndicatorRectangles = ScrollIndicatorRectangles;
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
228protected override bool OnPaint(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (8)
239parentView.InvalidateClientRectangle(Rectangle.Empty); 410parentView.InvalidateClientRectangle(Rectangle.Empty); 570parentView.InvalidateClientRectangle(Rectangle.Empty); 605protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 673Rectangle imageRectangle = (image != null) ? new Rectangle(Point.Empty, image.Size) : Rectangle.Empty; 674Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new Size(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty;
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (3)
114protected override bool OnPaint(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 120Rectangle dragRectangle = DragRectangle; 130internal Rectangle DragRectangle
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (21)
125Rectangle actionBounds = GetActionBounds(i); 131Rectangle buttonBounds = GetButtonBounds(i, j); 142Rectangle buttonBounds = GetButtonBounds(i, j); 178Rectangle actionBounds = GetActionBounds(i); 186Rectangle buttonBounds = GetButtonBounds(i, j); 232Rectangle actionBounds = GetActionBounds(i); 253Rectangle actionBounds = GetActionBounds(i); 262Rectangle buttonBounds = GetButtonBounds(i, j); 297protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 319private Rectangle GetActionBounds(int actionIndex) 321Rectangle bounds = new Rectangle(Point.Empty, ParentView.ViewPortSize); 328private Rectangle GetButtonBounds(int actionIndex, int buttonIndex) 330Rectangle bounds = GetActionBounds(actionIndex); 331Rectangle buttonBounds = this.actions[actionIndex].GetButtonBounds(buttonIndex); 343Rectangle actionBounds = GetActionBounds(i); 350Rectangle rectangle = ParentView.ViewPortRectangle; 539Rectangle buttonBounds = GetButtonBounds(i); 564internal Rectangle Bounds 576internal Rectangle GetButtonBounds(int buttonIndex) 581Rectangle rectangle = Rectangle.Empty;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (5)
145protected override bool OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 153protected override bool OnPaint(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 201ParentView.InvalidateClientRectangle(Rectangle.Empty); 214ParentView.InvalidateClientRectangle(Rectangle.Empty); 232Rectangle rectangle = new Rectangle(locations[i], this.draggedDesignerImages[i].Size);
AuthoringOM\Design\MessageFilters\GlyphManager.cs (7)
96public virtual Rectangle GetBounds(ActivityDesigner designer, bool activated) 229ParentView.InvalidateClientRectangle(Rectangle.Empty); 236ParentView.InvalidateClientRectangle(Rectangle.Empty); 311private List<Rectangle> rectangles = new List<Rectangle>(); 313internal void AddRectangle(Rectangle rectangle) 368private ActivityDesigner[] GetActivityDesigners(Rectangle logicalViewPort)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (6)
171foreach (Rectangle grabHandle in selectionGlyph.GetGrabHandles(potentialResizableDesigner)) 194Rectangle designerBounds = designer.Bounds; 274Rectangle clipBounds = Rectangle.Empty; 282Rectangle designerBounds = designerToSize.Bounds; 317designerBounds = Rectangle.Intersect(designerBounds, clipBounds);
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (5)
139protected virtual bool OnPaint(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 144protected virtual bool OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 483bool IWorkflowDesignerMessageSink.OnPaint(PaintEventArgs eventArgs, Rectangle viewPort) 497bool IWorkflowDesignerMessageSink.OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort) 561void IWorkflowDesignerMessageSink.OnResizing(DesignerEdges sizingEdge, Rectangle bounds)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
168Rectangle dragRectangle = this.fastZoomingMessageFilter.DragRectangle;
AuthoringOM\Design\ParallelActivityDesigner.cs (11)
275protected override Rectangle[] GetDropTargets(Point dropPoint) 278return new Rectangle[] { }; 282Rectangle bounds = Bounds; 284Rectangle[] dropTargets = new Rectangle[containedDesigners.Count + 1]; 295Rectangle designerBounds1 = designer1.Bounds; 298Rectangle designerBounds2 = designer2.Bounds; 336Rectangle bounds = Bounds; 402Rectangle[] dropTargets = GetDropTargets(Point.Empty); 411Rectangle dropTargetRectangle = dropTargets[index]; 413Rectangle bounds = Bounds;
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (1)
103public override Rectangle Bounds
AuthoringOM\Design\SequentialActivityDesigner.cs (31)
112Rectangle[] connectors = GetConnectors(); 153protected virtual Rectangle HelpTextRectangle 157Rectangle[] connectors = GetConnectors(); 159return Rectangle.Empty; 162Rectangle helpTextRectangle = Rectangle.Empty; 173protected internal virtual Rectangle[] GetConnectors() 176return new Rectangle[] { }; 179return new Rectangle[] { }; 183return new Rectangle[] { }; 188Rectangle[] connectorBounds = new Rectangle[connectorCount]; 206Rectangle startDesignerBounds = startDesigner.Bounds; 236Rectangle endDesignerBounds = endDesigner.Bounds; 317Rectangle[] connectors = GetConnectors(); 389protected override Rectangle[] GetDropTargets(Point dropPoint) 392return new Rectangle[] { HelpTextRectangle }; 405Rectangle helpTextRectangle = HelpTextRectangle; 408Rectangle[] connectors = GetConnectors(); 419Rectangle[] connectors = GetConnectors(); 492Rectangle helpTextRectangle = HelpTextRectangle; 518Rectangle logicalViewPort = parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.ViewPortSize)); 520Rectangle[] connectors = GetConnectors(); 521Rectangle helpTextRectangle = HelpTextRectangle; 551public override Rectangle GetBounds(ActivityDesigner designer, bool activated) 553Rectangle bounds = Rectangle.Empty; 556Rectangle[] connectors = ((SequentialActivityDesigner)designer).GetConnectors(); 565Rectangle bounds = GetBounds(designer, activated); 566Rectangle[] grabHandles = new Rectangle[2];
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (15)
99public virtual Rectangle Bounds 103Rectangle bounds = Rectangle.Empty; 107Rectangle textBounds = TextRectangle; 108Rectangle imageBounds = ImageRectangle; 118Rectangle designerBounds = this.rootDesigner.Bounds; 130public virtual Rectangle TextRectangle 134Rectangle bounds = Rectangle.Empty; 138Rectangle designerBounds = this.rootDesigner.Bounds; 151public virtual Rectangle ImageRectangle 155Rectangle bounds = Rectangle.Empty; 160Rectangle designerBounds = this.rootDesigner.Bounds; 161Rectangle textRectangle = TextRectangle;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (25)
72protected override Rectangle ImageRectangle 76return Rectangle.Empty; //we are using image rect from the header for that... 156protected override Rectangle SmartTagRectangle 160Rectangle smartTagRectangle = Rectangle.Empty; 300Rectangle watermarkRectangle = Rectangle.Empty; 303Rectangle bounds = Bounds; 338public override Rectangle Bounds 342Rectangle bounds = base.Bounds; 343Rectangle textRectangle = base.TextRectangle; 350public override Rectangle TextRectangle 354Rectangle textRectangle = base.TextRectangle; 361public override Rectangle ImageRectangle 365Rectangle imageRectangle = base.ImageRectangle; 383Rectangle rectangle = HeaderBarRectangle; 395private Rectangle HeaderBarRectangle 399Rectangle headerBarRectangle = new Rectangle(); 426public override Rectangle Bounds 430Rectangle bounds = base.Bounds; 445public override Rectangle ImageRectangle 449Rectangle imageRectangle = base.ImageRectangle; 468Rectangle rectangle = FooterBarRectangle; 483internal Rectangle FooterBarRectangle 487return Rectangle.Empty;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (6)
452protected virtual Rectangle[] GetDropTargets(Point dropPoint) 454return new Rectangle[] { Bounds }; 671Rectangle designerBounds = activityDesigner.Bounds; 692Rectangle[] dropTargets = GetDropTargets(new Point(e.X, e.Y)); 695Rectangle dropConnector = dropTargets[CurrentDropTarget]; 710Rectangle[] dropTargets = GetDropTargets(dropPoint);
AuthoringOM\Design\Themes.cs (5)
1001private Rectangle backgroundBrushRect; 1297public Brush GetBackgroundBrush(Rectangle rectangle) 1445private Rectangle expandButtonRectangle = Rectangle.Empty; 1629public Brush GetExpandButtonBackgroundBrush(Rectangle rectangle)
AuthoringOM\Design\WorkflowLayouts.cs (48)
48public abstract Rectangle MapInRectangleToLayout(Rectangle logicalRectangle); 49public abstract Rectangle MapOutRectangleFromLayout(Rectangle logicalRectangle); 105public override Rectangle MapInRectangleToLayout(Rectangle logicalRectangle) 110public override Rectangle MapOutRectangleFromLayout(Rectangle logicalRectangle) 142Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.Size); 195Rectangle bitmapArea = new Rectangle(Point.Empty, memoryBitmap.Size); 257Rectangle rootBounds = this.parentView.RootDesigner.Bounds; 282public override Rectangle MapInRectangleToLayout(Rectangle logicalRectangle) 290public override Rectangle MapOutRectangleFromLayout(Rectangle logicalRectangle) 411public override Rectangle MapInRectangleToLayout(Rectangle logicalRectangle) 413Rectangle transformedViewPort = Rectangle.Empty; 418Rectangle intersectedPhysicalViewPort = logicalRectangle; 429Rectangle insersectedLogicalViewPort = Rectangle.Empty; 439transformedViewPort = (transformedViewPort.IsEmpty) ? insersectedLogicalViewPort : Rectangle.Union(transformedViewPort, insersectedLogicalViewPort); 446public override Rectangle MapOutRectangleFromLayout(Rectangle logicalRectangle) 448Rectangle transformedViewPort = Rectangle.Empty; 453Rectangle intersectedLogicalViewPort = logicalRectangle; 464Rectangle insersectedPhysicalViewPort = Rectangle.Empty; 474transformedViewPort = (transformedViewPort.IsEmpty) ? insersectedPhysicalViewPort : Rectangle.Union(transformedViewPort, insersectedPhysicalViewPort); 540Rectangle physicalViewPort = new Rectangle(points[0], new Size(points[1])); 563Rectangle viewPortBitmapArea = Rectangle.Empty; 596Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.Size); 613Rectangle physicalViewPort = new Rectangle(points[0], new Size(points[1])); 652Rectangle intersectedViewPort = pageLayoutData.LogicalPageBounds; 669Rectangle viewPortBitmapArea = Rectangle.Empty; 812Rectangle logicalBounds = new Rectangle(column * viewablePageSize.Width, row * viewablePageSize.Height, viewablePageSize.Width, viewablePageSize.Height); 813Rectangle pageBounds = new Rectangle(pageLocation, this.pageSize); 814Rectangle viewablePageBounds = new Rectangle(viewablePageLocation, viewablePageSize); 917public Rectangle LogicalPageBounds; 919public Rectangle PageBounds; 921public Rectangle ViewablePageBounds; 925public PageLayoutData(Rectangle logicalPageBounds, Rectangle pageBounds, Rectangle viewablePageBounds, Point rowColumnPos)
AuthoringOM\Design\WorkflowPrinting.cs (6)
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); 264Rectangle layoutRectangle = Rectangle.Empty; 382internal Rectangle PageBounds; 383internal Rectangle PageBoundsWithoutMargin;
AuthoringOM\Design\WorkflowView.cs (22)
364InvalidateClientRectangle(Rectangle.Empty); 429InvalidateClientRectangle(Rectangle.Empty); 433public Rectangle ViewPortRectangle 607InvalidateClientRectangle(Rectangle.Empty); 783public void ShowInPlaceToolTip(string toolTipText, Rectangle toolTipRectangle) 1301InvalidateClientRectangle(Rectangle.Empty); 1477InvalidateClientRectangle(Rectangle.Empty); 1713Rectangle rectangleToMakeVisible = Rectangle.Empty; 1735private void EnsureVisible(Rectangle rect) 1737Rectangle clientRectangle = ClientRectangleToLogical(new Rectangle(Point.Empty, ViewPortSize)); 1769InvalidateClientRectangle(Rectangle.Empty); 1903Rectangle buttonRect = e.SelectedTabBounds; 2008public void InvalidateClientRectangle(Rectangle clientRectangle) 2025public void InvalidateLogicalRectangle(Rectangle logicalRectangle) 2073public Rectangle LogicalRectangleToClient(Rectangle rectangle) 2076Rectangle clientViewPort = (this.activeLayout != null) ? this.activeLayout.MapOutRectangleFromLayout(rectangle) : rectangle; 2083public Rectangle ClientRectangleToLogical(Rectangle rectangle) 2088Rectangle scaledLogicalViewPort = new Rectangle(ClientPointToLogical(rectangle.Location, false), ClientSizeToLogical(rectangle.Size)); 2259public override Rectangle Bounds
System.WorkflowServices (21)
System\Workflow\Activities\Design\GradientPanel.cs (8)
18protected Rectangle frameRect; 88Rectangle shadowRect = new Rectangle(frameRect.X, frameRect.Y + 6, frameRect.Width, frameRect.Height - 5); 106private Rectangle DropRoundedRectangleShadow(Rectangle shadowRect, Graphics outputGraphics) 123private GraphicsPath RoundedRect(Rectangle frame) 132Rectangle arc = new Rectangle(frame.Left, frame.Top, diameter, diameter); 144private GraphicsPath RoundedRectTopHalf(Rectangle frame) 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 (9)
22private Rectangle bounds; 24public HighlightOverlayGlyph(Rectangle bounds, List<ActivityDesigner> highlightedDesigners) 30public Rectangle Bounds 44Rectangle frameRect = Bounds; 45Rectangle shadowRect = frameRect; 63private Rectangle DropRoundedRectangleShadow(Rectangle shadowRect, Graphics outputGraphics) 83private GraphicsPath RoundedRect(Rectangle frame) 88Rectangle arc = new Rectangle(frame.Left, frame.Top, diameter, diameter);