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