443 references to Rectangle
Microsoft.Private.Windows.Core (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.RECT.g.cs (1)
74
public static implicit operator global::System.Drawing.Rectangle(RECT value) => new global::System.Drawing.
Rectangle
(value.left, value.top, value.Width, value.Height);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
128
value = new
Rectangle
(
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
128
new
Rectangle
(0, 0, imageWidth, imageHeight),
PresentationUI (5)
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
667
Rectangle iconRect = new
Rectangle
(
677
Rectangle statusRect = new
Rectangle
(
685
Rectangle intentRect = new
Rectangle
(
712
Rectangle signByRect = new
Rectangle
(
720
Rectangle localeRect = new
Rectangle
(
System.ComponentModel.TypeConverter (2)
System\Drawing\RectangleConverter.cs (2)
52
return new
Rectangle
(x, y, width, height);
110
return new
Rectangle
((int)x, (int)y, (int)width, (int)height);
System.Drawing.Primitives (6)
System\Drawing\Rectangle.cs (6)
51
new
Rectangle
(left, top, unchecked(right - left), unchecked(bottom - top));
181
return new
Rectangle
(
196
return new
Rectangle
(
211
return new
Rectangle
(
297
return new
Rectangle
(x1, y1, x2 - x1, y2 - y1);
320
return new
Rectangle
(x1, y1, x2 - x1, y2 - y1);
System.Private.Windows.Core (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.RECT.g.cs (1)
74
public static implicit operator global::System.Drawing.Rectangle(RECT value) => new global::System.Drawing.
Rectangle
(value.left, value.top, value.Width, value.Height);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
128
value = new
Rectangle
(
System.Windows.Forms (324)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (1)
45
return new
Rectangle
(pxLeft, pyTop, pcxWidth, pcyHeight);
System\Windows\Forms\ActiveX\AxHost.cs (4)
1222
SetObjectRects(new
Rectangle
(x, y, width, height));
1228
SetObjectRects(new
Rectangle
(x, y, width, height));
3256
Bounds = new
Rectangle
(location.X, location.Y, ocxExtent.Width, ocxExtent.Height);
3263
Bounds = new
Rectangle
(location.X, location.Y, newSize.Width, newSize.Height);
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ControlItem.cs (1)
241
return new
Rectangle
(x, y, size.Width, size.Height);
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
318
using Region windowRegion = new(new
Rectangle
(0, 0, 0, 0));
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.IconRegion.cs (3)
40
_region = new Region(new
Rectangle
(0, 0, 0, 0));
66
_region.Union(new
Rectangle
(x, y, 1, 1));
72
_region.Intersect(new
Rectangle
(0, 0, size.Width, size.Height));
System\Windows\Forms\Components\ImageList\ImageList.cs (1)
632
targetData = result.LockBits(new
Rectangle
(0, 0, _imageSize.Width, _imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
System\Windows\Forms\Control.cs (8)
1292
get =>
new
(_x, _y, _width, _height);
1446
public Rectangle ClientRectangle => new
Rectangle
(0, 0, _clientWidth, _clientHeight);
1925
=>
new
(0, 0, _clientWidth, _clientHeight);
5515
Rectangle newBounds =
new
(suggestedX, suggestedY, 0, 0)
5525
return new
Rectangle
(suggestedX, suggestedY, proposedWidth, proposedHeight);
5659
return new
Rectangle
(sx, sy, sw, sh);
9091
Rectangle shift =
new
(-Left, -Top, parent.Width, parent.Height);
9094
Rectangle newClipRect =
new
(
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
620
return new
Rectangle
(-1, -1, 1, 1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (5)
383
Rectangle left =
new
(bounds.X, bounds.Y, size, bounds.Height);
384
Rectangle right =
new
(bounds.X + bounds.Width - size, bounds.Y, size, bounds.Height);
385
Rectangle top =
new
(bounds.X + size, bounds.Y, bounds.Width - size * 2, size);
386
Rectangle bottom =
new
(bounds.X + size, bounds.Y + bounds.Height - size, bounds.Width - size * 2, size);
434
: new
Rectangle
(
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
295
Rectangle textAdjusted =
new
(
373
layout.CheckBounds = new
Rectangle
(Client.X, Client.Y, checkSizeFull, checkSizeFull);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
307
RECT rcCheck = new
Rectangle
(0, 0, fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeRendererBase.cs (1)
128
Rectangle paddedBounds =
new
(
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
275
Rectangle arcRect =
new
(bounds.Right - diameter, bounds.Bottom - diameter, diameter, diameter);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (5)
105
hdc.FillRectangle(fieldBrush,
new
(bounds.X + 2, bounds.Y + 2, 8, 8));
106
hdc.FillRectangle(fieldBrush,
new
(bounds.X + 4, bounds.Y + 1, 4, 10));
107
hdc.FillRectangle(fieldBrush,
new
(bounds.X + 1, bounds.Y + 4, 10, 4));
152
Rectangle vCross =
new
(
160
Rectangle hCross =
new
(
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
407
return new
Rectangle
(-1, -1, 1, 1);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
346
return new
Rectangle
(-1, -1, 1, 1);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (7)
34
_innerBorder = new
Rectangle
(_outerBorder.X + 1, _outerBorder.Y + 1, _outerBorder.Width - dropDownButtonWidth - 2, _outerBorder.Height - 2);
35
_innerInnerBorder = new
Rectangle
(_innerBorder.X + 1, _innerBorder.Y + 1, _innerBorder.Width - 2, _innerBorder.Height - 2);
36
_dropDownRect = new
Rectangle
(_innerBorder.Right + 1, _innerBorder.Y, dropDownButtonWidth, _innerBorder.Height + 1);
97
new
Rectangle
(_outerBorder.X, _outerBorder.Y, _dropDownRect.Width + 1, _outerBorder.Height));
103
new
Rectangle
(_dropDownRect.X, _outerBorder.Y, _outerBorder.Right - _dropDownRect.X, _outerBorder.Height));
125
new
Rectangle
(_outerBorder.X, _outerBorder.Y, _dropDownRect.Width + 1, _outerBorder.Height));
131
new
Rectangle
(_dropDownRect.X, _outerBorder.Y, _outerBorder.Right - _dropDownRect.X, _outerBorder.Height));
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (1)
470
:
new
(
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (2)
43
_buttonBounds = new
Rectangle
(
361
return new
Rectangle
(
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
4076
Invalidate(new
Rectangle
(_layout.Inside.X, _layout.Inside.Y, RowHeadersWidth, ColumnHeadersHeight));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (22)
3034
r = new
Rectangle
(
3044
r = new
Rectangle
(
3059
Rectangle r =
new
(
3080
Rectangle r =
new
(
5691
Rectangle rectInsertionBar =
new
(0, _layout.ColumnHeaders.Top, InsertionBarWidth, _layout.ColumnHeaders.Height);
8361
? new
Rectangle
(cx - displayWidth, data.Y, displayWidth, data.Height)
8362
: new
Rectangle
(cx, data.Y, displayWidth, data.Height);
9147
Rectangle rowRect =
new
(data.X, cy, data.Width, displayHeight);
10074
Invalidate(new
Rectangle
(data.X, top, data.Width, bottom - top));
10360
_layout.ResizeBoxRect = new
Rectangle
(
10377
_horizScrollBar.Bounds = new
Rectangle
(
10418
_vertScrollBar.Bounds = new
Rectangle
(
17505
right = new
Rectangle
(oldClientRectangle.X + oldClientRectangle.Width - borderWidth,
17509
bottom = new
Rectangle
(oldClientRectangle.X,
17527
right = new
Rectangle
(newClientRectangle.X + newClientRectangle.Width - borderWidth,
17537
bottom = new
Rectangle
(newClientRectangle.X,
17547
right = new
Rectangle
(oldGridFocusRectangle.X + oldGridFocusRectangle.Width - 1,
17553
bottom = new
Rectangle
(oldGridFocusRectangle.X,
19349
Rectangle edge =
new
(0, 0, bounds.Width, borderWidth);
19379
g.DrawRectangle(pen, new
Rectangle
(0, 0, bounds.Width - 1, bounds.Height - 1));
19389
g.DrawRectangle(pen, new
Rectangle
(0, 0, bounds.Width - 1, bounds.Height - 1));
19885
Rectangle cellBounds =
new
(leftEdge, GetRowYFromIndex(_ptCurrentCell.Y),
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
27
private static Rectangle s_rectThemeMargins =
new
(-1, -1, 0, 0);
412
Rectangle rectCell =
new
(0, 0, DATAGRIDVIEWBUTTONCELL_themeMargin, DATAGRIDVIEWBUTTONCELL_themeMargin);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1011
Rectangle bmpRect =
new
(DataGridView!.RightToLeftInternal ?
3601
rectPadding = new
Rectangle
(bounds.X, bounds.Y, cellStyle.Padding.Right, bounds.Height);
3610
rectPadding = new
Rectangle
(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.Height);
3864
return new
Rectangle
(xEditingControl, yEditingControl, wEditingControl, hEditingControl);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
1250
resultBounds = new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height);
1280
resultBounds = new
Rectangle
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height);
1287
Rectangle checkBounds =
new
(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height);
1345
Rectangle fullSize =
new
(checkBoxX - 1, checkBoxY - 1, checkBoxSize.Width + 3, checkBoxSize.Height + 3);
1356
RECT rcCheck = new
Rectangle
(0, 0, fullSize.Width, fullSize.Height);
1390
Rectangle checkBounds =
new
(checkBoxX, checkBoxY, checkBoxSize.Width - 1, checkBoxSize.Height - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
838
DataGridViewColumnHeaderCellRenderer.DrawHeader(gFlip, new
Rectangle
(0, 0, backgroundBounds.Width, backgroundBounds.Height), state);
840
g.DrawImage(bmFlipXPThemes, backgroundBounds, new
Rectangle
(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height), GraphicsUnit.Pixel);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (2)
32
Rectangle cornerClip =
new
(bounds.Left, bounds.Bottom - 2, 2, 2);
35
cornerClip = new
Rectangle
(bounds.Right - 2, bounds.Bottom - 2, 2, 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
1980
g.DrawRectangle(SystemPens.ControlLightLight, new
Rectangle
(valBounds.X, valBounds.Y, valBounds.Width - 1, valBounds.Height - 1));
2010
dropRect = new
Rectangle
(
2018
dropRect = new
Rectangle
(
2027
dropRect = new
Rectangle
(
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (4)
19
private static Rectangle s_rectThemeMargins =
new
(-1, -1, 0, 0);
385
Rectangle rectCell =
new
(0, 0, ThemeMargin, ThemeMargin);
396
s_rectThemeMargins = new
Rectangle
(0, 0, 2, 3);
410
s_rectThemeMargins = new
Rectangle
(2, 1, 0, 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (3)
584
imageBounds = new
Rectangle
(bounds.X, bounds.Y, imgWidth, imgHeight);
591
imageBounds = new
Rectangle
(
600
imageBounds = new
Rectangle
(
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
1079
new
Rectangle
(valBounds.X + 1, valBounds.Y, valBounds.Width, valBounds.Height),
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
704
DataGridViewRowHeaderCellRenderer.DrawHeader(gFlip, new
Rectangle
(0, 0, backgroundBounds.Height, backgroundBounds.Width), state);
710
new
Rectangle
(0, 0, backgroundBounds.Width, backgroundBounds.Height),
1033
Rectangle bmpRect =
new
(width, height, s_iconsWidth, s_iconsHeight);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
168
return new
Rectangle
(
463
new
Rectangle
(0, 0, Width, Height),
474
new
Rectangle
(0, 0, Width, Height),
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (9)
65
return new
Rectangle
(
207
Rectangle frameBounds =
new
(
290
Rectangle frameBounds =
new
(
344
Rectangle headerBounds =
new
(
435
return new
Rectangle
(
466
: new
Rectangle
(
483
return new
Rectangle
(
551
return new
Rectangle
(
667
return new
Rectangle
(
System\Windows\Forms\Controls\Labels\Label.cs (2)
900
return new
Rectangle
(xLoc, yLoc, pointImageSize.Width, pointImageSize.Height);
1433
Rectangle rectInScreen = RectangleToScreen(new
Rectangle
(0, 0, Width, Height));
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
435
return new
Rectangle
(xLoc, yLoc, width, height);
595
Rectangle visualRectangle =
new
(
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
540
Rectangle box =
new
(
569
Rectangle textBounds =
new
(
628
Rectangle stringBounds =
new
(
721
Rectangle emptyRectangle =
new
(
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2327
Rectangle rect =
new
(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
106
resultBounds = new
Rectangle
(originalBounds.X, originalBounds.Y, textSize.Width, textSize.Height);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6977
Rectangle rect =
new
(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
42
: new
Rectangle
(
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (1)
20
: new
Rectangle
(
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
63
return new
Rectangle
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (7)
2667
Rectangle toolStripBounds =
new
(0, 1, toolStripWidth, toolStripHeight);
2883
Invalidate(new
Rectangle
(0, me.Y - s_cyDivider, Size.Width, me.Y + s_cyDivider));
2886
_gridView.Invalidate(new
Rectangle
(0, _gridView.Size.Height - s_cyDivider, Size.Width, s_cyDivider));
2945
pevent.Graphics.FillRectangle(backgroundBrush, new
Rectangle
(0, 0, width, psheetLoc.Y));
2954
new
Rectangle
(0, yLast, width, _commandsPane.Location.Y - yLast));
2963
new
Rectangle
(0, yLast, width, _helpPane.Location.Y - yLast));
2968
pevent.Graphics.FillRectangle(backgroundBrush, new
Rectangle
(0, yLast, width, Size.Height - yLast));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
121
Rectangle focusRect =
new
(indent, rect.Y, labelWidth + 3, rect.Height - 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
62
return new
Rectangle
(4, 4, size.Width - 8, size.Height - 8);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (2)
117
new
Rectangle
(0, 0, Width, Height),
133
Rectangle dropDownButtonRect =
new
(0, 0, Width, Height);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (6)
651
_outlineRect = new
Rectangle
(
1568
Rectangle textRect =
new
(stringX, rect.Y + 1, maxSpace, rect.Height - 1);
1710
compatibleDC.HDC.FillRectangle(new
Rectangle
(0, 0, rectangle.Width, rectangle.Height), brush);
1711
explorerTreeRenderer.DrawBackground(compatibleDC, new
Rectangle
(0, 0, rectangle.Width, rectangle.Height), hwnd);
1836
Rectangle rectPaint =
new
(
1896
Rectangle textRectangle =
new
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
124
Invalidate(new
Rectangle
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
536
_uiItemRects[i] = new
Rectangle
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
642
return new
Rectangle
(pt.X, pt.Y, rect.Width, rect.Height);
1910
Rectangle rect =
new
(0, 0, 0, 0);
2150
Invalidate(new
Rectangle
(left, 0, Size.Width - left, Size.Height));
2242
DrawFocusRectangle(g, new
Rectangle
(_offset2Units, _offset2Units, Size.Width - doubleOffset, Size.Height - doubleOffset));
2388
Rectangle clearRect =
new
(1, 1, Size.Width - 2, Size.Height - 2);
3400
Rectangle clearRect =
new
(1, yPosition, Size.Width - 2, Size.Height - yPosition - 1);
3633
Rectangle rectInvalidate =
new
(_lastClientRect.Width - 1, 0, newRect.Width - _lastClientRect.Width + 1, _lastClientRect.Height);
3639
Rectangle rectInvalidate =
new
(0, _lastClientRect.Height - 1, _lastClientRect.Width, newRect.Height - _lastClientRect.Height + 1);
4372
Rectangle rectTarget =
new
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
364
Rectangle bottomGrip =
new
(0, Height - s_resizeGripSize, s_resizeGripSize, s_resizeGripSize);
365
Rectangle topGrip =
new
(0, 0, s_resizeGripSize, s_resizeGripSize);
510
Rectangle lRect =
new
(0, _resizeUp ? 0 : Height - s_resizeGripSize, s_resizeGripSize, s_resizeGripSize);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
620
Rectangle rectWithBorder =
new
(
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2892
Rectangle rect =
new
(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
853
Rectangle rect =
new
(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
2750
Rectangle bounds =
new
(
3034
return new
Rectangle
(
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
221
? new
Rectangle
(
226
: new
Rectangle
(
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1522
Rectangle bounds =
new
(x, y, width, height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (3)
66
_dropDownArrowRect = new
Rectangle
(_dropDownArrowPadding.Left, 0, s_dropDownArrowSize.Width, _ownerItem.Bounds.Height);
71
_dropDownArrowRect = new
Rectangle
(options.Client.Right, 0, s_dropDownArrowSize.Width, _ownerItem.Bounds.Height);
82
_dropDownArrowRect = new
Rectangle
(0, options.Client.Bottom + _dropDownArrowPadding.Top, _ownerItem.Bounds.Width - 1, s_dropDownArrowSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
364
_checkRectangle = LayoutUtils.Align(maxCheckSize, new
Rectangle
(nextPoint.X, nextPoint.Y, maxCheckSize.Width, _maxItemSize.Height), ContentAlignment.MiddleCenter);
369
_imageRectangle = LayoutUtils.Align(maxImageSize, new
Rectangle
(nextPoint.X, nextPoint.Y, maxImageSize.Width, _maxItemSize.Height), ContentAlignment.MiddleCenter);
380
_checkRectangle = LayoutUtils.Align(maxCheckSize, new
Rectangle
(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth, _maxItemSize.Height), ContentAlignment.MiddleCenter);
399
_checkRectangle = LayoutUtils.Align(LayoutUtils.UnionSizes(maxCheckSize, maxImageSize), new
Rectangle
(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth - 1, _maxItemSize.Height), ContentAlignment.MiddleCenter);
416
_imageMarginBounds = new
Rectangle
(0, 0, checkAndImageMarginWidth, Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (7)
74
new
Rectangle
(startX, startY, 2, 2) :
75
new
Rectangle
(startY, startX, 2, 2);
100
e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new
Rectangle
(0, 0, e.Item.Width - 1, e.Item.Height - 1));
314
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, 1, 1, 1));
319
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, 1, 1, 1));
326
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, bounds.Height - 2, 1, 1));
333
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, bounds.Height - 2, 1, 1));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3256
=> SetBounds(new
Rectangle
(x, y, width, height));
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (4)
79
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, 1, 1, 1));
84
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, 1, 1, 1));
91
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(1, bounds.Height - 2, 1, 1));
98
g.FillRectangle(SystemBrushes.ButtonShadow, new
Rectangle
(bounds.Width - 2, bounds.Height - 2, 1, 1));
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (18)
168
overflowArrowRect = new
Rectangle
(0, item.Height - _overflowArrowOffsetY, _overflowArrowWidth, _overflowArrowHeight);
172
overflowArrowRect = new
Rectangle
(item.Width - _overflowButtonWidth, item.Height - _overflowArrowOffsetY, _overflowArrowWidth, _overflowArrowHeight);
321
ControlPaint.DrawBorder3D(e.Graphics, new
Rectangle
(0, 0, item.Width, item.Height), item.BorderStyle, (Border3DSide)item.BorderSides);
456
edging = new
Rectangle
(bounds.Width - 1, 3, 1, bounds.Height - 3);
460
edging = new
Rectangle
(3, bounds.Height - 1, bounds.Width - 3, bounds.Height - 1);
504
new
Rectangle
(startX, startY, 2, 2) :
505
new
Rectangle
(startY, startX, 2, 2);
861
Rectangle bottomLeftParentVerticalPixels =
new
(bottomLeft.X, bottomLeft.Y - 1, 1, 2);
864
Rectangle bottomRightHorizontalPixels =
new
(bottomRight.X - 1, bottomRight.Y, 2, 1);
865
Rectangle bottomRightVerticalPixels =
new
(bottomRight.X, bottomRight.Y - 1, 1, 2);
872
topRightHorizontalPixels = new
Rectangle
(topRight.X - 1, topRight.Y, 1, 1);
873
topRightVerticalPixels = new
Rectangle
(topRight.X, topRight.Y, 1, 2);
877
topRightHorizontalPixels = new
Rectangle
(topRight.X - 2, topRight.Y, 2, 1);
878
topRightVerticalPixels = new
Rectangle
(topRight.X, topRight.Y, 1, 3);
1045
? new
Rectangle
(
1049
: new
Rectangle
(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2);
1320
Rectangle fillRect =
new
(overflowBoundsFill.X - 1, 0, 1, 1);
1395
Rectangle otherBottom =
new
(bottomLeft.X, bottomLeft.Y - 2, 1, 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (12)
1031
new
(12, 0, 2, 2),
1032
new
(8, 4, 2, 2),
1033
new
(4, 8, 2, 2),
1034
new
(0, 12, 2, 2),
1035
new
(8, 0, 2, 2),
1036
new
(4, 4, 2, 2),
1037
new
(0, 8, 2, 2),
1038
new
(4, 0, 2, 2),
1039
new
(0, 4, 2, 2),
1040
new
(1, 1, 2, 2),
1119
Rectangle dotRect =
new
(
1199
destRect: new
Rectangle
(0, 0, size.Width, size.Height),
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
125
return new
Rectangle
(itemBounds.X + 1, 0, itemBounds.Width - 2, 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
316
_splitterBounds = new
Rectangle
(splitButtonButtonBounds.Right, splitButtonButtonBounds.Top, _splitterWidth, splitButtonButtonBounds.Height);
322
_splitterBounds = new
Rectangle
(dropDownButtonBounds.Right, dropDownButtonBounds.Top, _splitterWidth, dropDownButtonBounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (4)
143
insertionRect = new
Rectangle
(_owner.Margin.Left, item.Bounds.Top, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
146
insertionRect = new
Rectangle
(_owner.Margin.Left, item.Bounds.Bottom, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
149
insertionRect = new
Rectangle
(item.Bounds.Right, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.Vertical) - 1);
152
insertionRect = new
Rectangle
(item.Bounds.Left, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.Vertical) - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (8)
301
alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new
Rectangle
(x, y, itemSize.Width, itemSize.Height)
302
: Rectangle.Union(alignedRightItems, new
Rectangle
(x, y, itemSize.Width, itemSize.Height));
314
alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new
Rectangle
(x, y, itemSize.Width, itemSize.Height)
315
: Rectangle.Union(alignedLeftItems, new
Rectangle
(x, y, itemSize.Width, itemSize.Height));
438
alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new
Rectangle
(x, y, itemSize.Width, itemSize.Height)
439
: Rectangle.Union(alignedRightItems, new
Rectangle
(x, y, itemSize.Width, itemSize.Height));
446
alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new
Rectangle
(x, y, itemSize.Width, itemSize.Height)
447
: Rectangle.Union(alignedLeftItems, new
Rectangle
(x, y, itemSize.Width, itemSize.Height));
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
552
ControlPaint.DrawBorder3D(e.Graphics, new
Rectangle
(0, 0, item.Width - 1, item.Height - 1), item.BorderStyle, (Border3DSide)item.BorderSides);
835
vsRenderer.DrawBackground(e.Graphics, new
Rectangle
(0, 0, e.ToolStrip.Width - 1, e.ToolStrip.Height - 1));
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (4)
120
t_visualStyleRenderer.DrawEdge(g, new
Rectangle
(bounds.X, bounds.Y, LineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None);
130
t_visualStyleRenderer.DrawEdge(g, new
Rectangle
((int)Math.Round(x), bounds.Y, LineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None);
150
t_visualStyleRenderer.DrawEdge(g, new
Rectangle
(bounds.X, bounds.Y, bounds.Width, LineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
160
t_visualStyleRenderer.DrawEdge(g, new
Rectangle
(bounds.X, (int)Math.Round(y), bounds.Width, LineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3159
Rectangle rect =
new
(0, 0, Size.Width - 1, Size.Height - 1);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (7)
625
Rectangle clipLeft =
new
(bounds.Left, bounds.Top, border, bounds.Height);
626
Rectangle clipTop =
new
(bounds.Left, bounds.Top, bounds.Width, border);
627
Rectangle clipRight =
new
(bounds.Right - border, bounds.Top, border, bounds.Height);
628
Rectangle clipBottom =
new
(bounds.Left, bounds.Bottom - border, bounds.Width, border);
974
upDownButtonsBounds = new
Rectangle
(
1049
inner = new
Rectangle
(
1059
Rectangle upDownButtonsBounds =
new
(
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (11)
79
Rectangle leadingRect =
new
(client.X, client.Y, leadingWidth, client.Height);
80
Rectangle trailingRect =
new
(
94
Rectangle topRect =
new
(client.X, client.Y, client.Width, halfHeight);
95
Rectangle bottomRect =
new
(client.X, client.Y + halfHeight, client.Width, client.Height - halfHeight);
341
Rectangle gap =
new
(
358
new
Rectangle
(0, 0, _parent._defaultButtonsWidth, half_height),
369
new
Rectangle
(0, half_height, _parent._defaultButtonsWidth, half_height),
400
new
Rectangle
(0, 0, _parent._defaultButtonsWidth, half_height),
420
new
Rectangle
(0, half_height, _parent._defaultButtonsWidth, half_height),
427
new
Rectangle
(0, 0, _parent._defaultButtonsWidth, half_height),
433
new
Rectangle
(0, half_height, _parent._defaultButtonsWidth, half_height),
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (3)
112
return
new
(clientLeft, clientTop, clientWidth, clientHeight);
317
return
new
(offsetLeft, offsetTop, offsetWidth, offsetHeight);
416
return
new
(scrollLeft, scrollTop, scrollWidth, scrollHeight);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
201
RECT posRect = new
Rectangle
(0, 0, width, height);
785
Bounds = new
Rectangle
(location.X, location.Y, extent.Width, extent.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (1)
109
internal static RECT GetClipRect() => new
Rectangle
(0, 0, 32000, 32000);
System\Windows\Forms\Design\ComponentEditorForm.cs (4)
235
Rectangle pageHostBounds =
new
(2 * BUTTON_PAD + selectorWidth, 2 * BUTTON_PAD + STRIP_HEIGHT,
238
grayStrip.Bounds = new
Rectangle
(pageHostBounds.X, BUTTON_PAD,
243
Rectangle pageBounds =
new
(0, 0, pageHostBounds.Width, pageHostBounds.Height);
258
_selector.Bounds = new
Rectangle
(BUTTON_PAD, BUTTON_PAD,
System\Windows\Forms\Form.cs (5)
154
private Rectangle _restoredWindowBounds =
new
(-1, -1, -1, -1);
161
private Rectangle _restoreBounds =
new
(-1, -1, -1, -1);
4275
form.SetBounds(new
Rectangle
(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None);
4467
new
Rectangle
(size.Width - SizeGripSize, size.Height - SizeGripSize, SizeGripSize, SizeGripSize));
5154
_restoredWindowBounds = new
Rectangle
(-1, -1, -1, -1);
System\Windows\Forms\Layout\CommonProperties.cs (1)
336
Rectangle bounds =
new
(x, y, width, height);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
691
return new
Rectangle
(topLeftPoint.X, topLeftPoint.Y, clientRectangle.right, clientRectangle.bottom);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2294
return new
Rectangle
(containerRectangle.X + splitterRectangle.X, containerRectangle.Y + splitterRectangle.Y, splitterRectangle.Width, splitterRectangle.Height);
System\Windows\Forms\Layout\DefaultLayout.cs (7)
233
return new
Rectangle
(anchorInfo.Left, anchorInfo.Top, width, height);
335
return new
Rectangle
(left, top, right - left, bottom - top);
405
Rectangle newElementBounds =
new
(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height);
418
Rectangle newElementBounds =
new
(remainingBounds.X, remainingBounds.Bottom - elementSize.Height, elementSize.Width, elementSize.Height);
431
Rectangle newElementBounds =
new
(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height);
444
Rectangle newElementBounds =
new
(remainingBounds.Right - elementSize.Width, remainingBounds.Y, elementSize.Width, elementSize.Height);
462
Rectangle newElementBounds =
new
(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height);
System\Windows\Forms\Layout\FlowLayout.cs (2)
76
Rectangle measureBounds =
new
(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height);
86
Rectangle rowBounds =
new
(displayRect.X,
System\Windows\Forms\Layout\LayoutUtils.cs (1)
16
public static readonly Rectangle s_maxRectangle =
new
(0, 0, int.MaxValue, int.MaxValue);
System\Windows\Forms\Layout\TableLayout.cs (3)
1250
Rectangle cellBounds =
new
((int)(startX + cellBorderWidth / 2.0f), (int)(top + cellBorderWidth / 2.0f), width - cellBorderWidth, height - cellBorderWidth);
1475
Rectangle cellsOccupied1 =
new
(layoutInfo1.ColumnStart, layoutInfo1.RowStart, layoutInfo1.ColumnSpan, layoutInfo1.RowSpan);
1480
Rectangle cellsOccupied2 =
new
(layoutInfo2.ColumnStart, layoutInfo2.RowStart, layoutInfo2.ColumnSpan, layoutInfo2.RowSpan);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (3)
380
Rectangle outsideCellBounds =
new
(
386
Rectangle insideCellBounds =
new
(
432
Rectangle tableBounds =
new
(
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
483
private Rectangle FocusRectangle =>
new
(0, 0, Width - 1, Height - 1);
485
private Rectangle ResizeBoxRectangle =>
new
(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height);
693
pageRenderArea[imageIndex - StartPage] = new
Rectangle
(x, y, imagePixels.Width, imagePixels.Height);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1143
Rectangle rect =
new
(0, 0, item.Bounds.Width - 1, item.Bounds.Height - 1);
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (8)
238
Rectangle bottomRect =
new
(bowl.Left, bowl.Bottom - bottomHeight, bowl.Width, bottomHeight);
555
? new
Rectangle
(contentBounds.Left, contentBounds.Top, imageWidth, contentBounds.Height)
556
: new
Rectangle
(contentBounds.Right - imageWidth, contentBounds.Top, imageWidth, contentBounds.Height);
570
? new
Rectangle
(contentBounds.Left, contentBounds.Top, contentBounds.Width, imageHeight)
571
: new
Rectangle
(contentBounds.Left, contentBounds.Bottom - imageHeight, contentBounds.Width, imageHeight);
603
return new
Rectangle
(x, y, size.Width, size.Height);
639
=>
new
(
757
Rectangle keyRect =
new
(
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (2)
173
return new
Rectangle
(switchX, switchY, metrics.SwitchWidth, metrics.SwitchHeight);
525
return new
Rectangle
(
System\Windows\Forms\Rendering\ControlPaint.cs (12)
293
new
Rectangle
(0, 0, width, height),
1062
RECT rc = new
Rectangle
(x, y, width, height);
1183
bounds = new
Rectangle
(bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1270
DrawFlatCheckBox(graphics, new
Rectangle
(x, y, width, height), state);
1380
Rectangle offsetRectangle =
new
(
1497
new
Rectangle
(x, y, width, height),
1523
Rectangle fillRect =
new
(
1619
=> DrawImageDisabled(graphics, image, new
Rectangle
(x, y, image.Width, image.Height), unscaledImage: false);
1666
new
Rectangle
(0, 0, imageSize.Width, imageSize.Height),
1892
Rectangle bounds =
new
(x, y, width, height);
2432
bound = new
Rectangle
(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1);
2452
bound = new
Rectangle
(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
552
_displayRect = new
Rectangle
(_displayRect.X, _displayRect.Y, HorizontalScroll.Maximum, _displayRect.Height);
557
_displayRect = new
Rectangle
(_displayRect.X, _displayRect.Y, _displayRect.Width, VerticalScroll.Maximum);
System\Windows\Forms\SystemInformation.cs (2)
455
return
new
(PInvokeCore.GetSystemMetrics(SM_XVIRTUALSCREEN),
462
return new
Rectangle
(0, 0, size.Width, size.Height);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
1559
new
Rectangle
(centeredX, toolRectangle.Top - height, width, height),
1560
new
Rectangle
(toolRectangle.Right, centeredY, width, height),
1561
new
Rectangle
(centeredX, toolRectangle.Bottom, width, height),
1562
new
Rectangle
(toolRectangle.Left - width, centeredY, width, height),
System.Windows.Forms.Design (98)
System\ComponentModel\Design\ByteViewer.cs (2)
144
new
Rectangle
(
154
new
Rectangle
(
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
615
Rectangle baseVar =
new
(e.Bounds.X + offset, e.Bounds.Y + 1, PaintWidth, e.Bounds.Height - 3);
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
196
Rectangle bounds =
new
(0, 0, Width, Height);
201
_dropDownRectangle = new
Rectangle
(bounds.Right - PushButtonWidth - 1, 4, PushButtonWidth, bounds.Height - 8);
System\ComponentModel\Design\DesignerActionPanel.cs (2)
485
e.Graphics.DrawRectangle(borderPen, new
Rectangle
(0, 0, Width - 1, Height - 1));
505
g.SetClip(new
Rectangle
(0, yPos, lineWidth, lineHeight));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
291
Rectangle rect =
new
(1, 1, width - 2, height - 2);
294
swatchGraphics.DrawRectangle(SystemPens.ControlDark, new
Rectangle
(0, 0, width - 1, height - 1));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (5)
70
ButtonRenderer.DrawButton(g, new
Rectangle
(-1, -1, Width + 2, Height + 2), "…", Font, Focused, buttonState);
93
ComboBoxRenderer.DrawDropDownButton(g, new
Rectangle
(0, 0, Width, Height), state);
116
new
Rectangle
(-1, -1, Width + 2, Height + 2),
137
new
Rectangle
(
155
ControlPaint.DrawFocusRectangle(g, new
Rectangle
(2, 2, Width - 5, Height - 5));
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
43
return new
Rectangle
(pt.X, pt.Y, rect.Width, rect.Height);
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
275
_editor.PaintValue(value, graphics, new
Rectangle
(die.Bounds.X + 2, die.Bounds.Y + 2, 22, die.Bounds.Height - 4));
276
graphics.DrawRectangle(SystemPens.WindowText, new
Rectangle
(die.Bounds.X + 2, die.Bounds.Y + 2, 22 - 1, die.Bounds.Height - 4 - 1));
System\Drawing\Design\CursorEditor.CursorUI.cs (3)
75
e.Graphics.FillRectangle(SystemBrushes.Control, new
Rectangle
(e.Bounds.X + 2, e.Bounds.Y + 2, _cursorWidth, e.Bounds.Height - 4));
76
e.Graphics.DrawRectangle(SystemPens.WindowText, new
Rectangle
(e.Bounds.X + 2, e.Bounds.Y + 2, _cursorWidth - 1, e.Bounds.Height - 4 - 1));
78
cursor.DrawStretched(e.Graphics, new
Rectangle
(e.Bounds.X + 2, e.Bounds.Y + 2, _cursorWidth, e.Bounds.Height - 4));
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
26
_glyphBounds = new
Rectangle
(containerBounds.X + glyphOffset, containerBounds.Y - (int)(glyphSize * .5), glyphSize, glyphSize);
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
161
_bounds = (new
Rectangle
(topRight.X, topRight.Y, GlyphImageOpened.Width, GlyphImageOpened.Height));
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (4)
372
invalidRect = new
Rectangle
(diffs[k].X1, diffs[k].Y1, diffs[k].X2 - diffs[k].X1, diffs[k].Y2 - diffs[k].Y1);
393
invalidRect = new
Rectangle
(line.X1, line.Y1, line.X2 - line.X1, line.Y2 - line.Y1);
535
Rectangle clipBounds =
new
(0, 0, rootControl.ClientRectangle.Width, rootControl.ClientRectangle.Height);
1144
Rectangle tempDragRect =
new
(dragBounds.Left + snapPoint.X, dragBounds.Top + snapPoint.Y, dragBounds.Width, dragBounds.Height);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (4)
738
Rectangle newRect =
new
(newPosition.X, newPosition.Y,
759
_dragAssistanceManager.OnMouseMove(new
Rectangle
(-100, -100, 0, 0)); /*just an invalid rect - so we won't snap*/// );
1027
Rectangle controlRect =
new
(_dragComponents[i].draggedLocation.X - _dragImageRect.X,
1034
new
Rectangle
(0, 0, _dragComponents[i].dragImage.Width, _dragComponents[i].dragImage.Height),
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (8)
33
bounds = new
Rectangle
(controlBounds.X + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, controlBounds.Y + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
38
bounds = new
Rectangle
(controlBounds.Right - DesignerUtils.s_handleOverlap, controlBounds.Y + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
43
bounds = new
Rectangle
(controlBounds.Right - DesignerUtils.s_handleOverlap, controlBounds.Bottom - DesignerUtils.s_handleOverlap, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
48
bounds = new
Rectangle
(controlBounds.X + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, controlBounds.Bottom - DesignerUtils.s_handleOverlap, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
58
bounds = new
Rectangle
(controlBounds.X + (controlBounds.Width / 2) - (DesignerUtils.s_handleSize / 2), controlBounds.Y + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
70
bounds = new
Rectangle
(controlBounds.X + (controlBounds.Width / 2) - (DesignerUtils.s_handleSize / 2), controlBounds.Bottom - DesignerUtils.s_handleOverlap, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
82
bounds = new
Rectangle
(controlBounds.X + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, controlBounds.Y + (controlBounds.Height / 2) - (DesignerUtils.s_handleSize / 2), DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
94
bounds = new
Rectangle
(controlBounds.Right - DesignerUtils.s_handleOverlap, controlBounds.Y + (controlBounds.Height / 2) - (DesignerUtils.s_handleSize / 2), DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
System\Windows\Forms\Design\Behavior\LockedHandleGlyph.cs (1)
26
bounds = new
Rectangle
((controlBounds.X + DesignerUtils.s_lockHandleOverlap) - DesignerUtils.s_lockHandleWidth,
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (1)
34
bounds = new
Rectangle
(
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
603
_dragManager.OnMouseMove(new
Rectangle
(-100, -100, 0, 0));
618
Rectangle controlBounds =
new
(_resizeComponents[0].resizeBounds.X, _resizeComponents[0].resizeBounds.Y,
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
306
Rectangle newRectangle =
new
(
343
Rectangle statusRect =
new
(newRectangle.X - adornerServiceOrigin.X, newRectangle.Y - adornerServiceOrigin.Y, 0, 0);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (8)
108
_glyphBounds = new
Rectangle
(bounds.X + x, bounds.Y + bounds.Height, _imageWidth, _imageHeight);
117
_glyphBounds = new
Rectangle
(bounds.X + x, bounds.Y - _imageHeight, _imageWidth, _imageHeight);
126
_glyphBounds = new
Rectangle
(bounds.X + bounds.Width, bounds.Y + y, _imageHeight, _imageWidth);
135
_glyphBounds = new
Rectangle
(bounds.X - _imageHeight, bounds.Y + y, _imageHeight, _imageWidth);
157
_glyphBounds = new
Rectangle
(bounds.X + x, bounds.Y + bounds.Height, _imageWidth, _imageHeight);
166
_glyphBounds = new
Rectangle
(bounds.X + x, bounds.Y - _imageHeight, _imageWidth, _imageHeight);
175
_glyphBounds = new
Rectangle
(bounds.X + bounds.Width, bounds.Y + y, _imageHeight, _imageWidth);
184
_glyphBounds = new
Rectangle
(bounds.X - _imageHeight, bounds.Y + y, _imageHeight, _imageWidth);
System\Windows\Forms\Design\ComponentTray.cs (2)
2272
e.Graphics.DrawImage(_toolboxBitmap, new
Rectangle
(x, y, _cxIcon, _cyIcon));
2284
e.Graphics.DrawImage(_toolboxBitmap, new
Rectangle
(rc.X, y, _cxIcon, _cyIcon));
System\Windows\Forms\Design\ControlCommandSet.cs (1)
714
Rectangle dragRect =
new
(primaryControl.Location.X, primaryControl.Location.Y,
System\Windows\Forms\Design\ControlDesigner.cs (1)
2266
Rectangle imageRect =
new
(marginX, marginY, glyphSize.Width, glyphSize.Height);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
902
Rectangle bounds =
new
(0, selectedIndex * _selectedColumns.ItemHeight, _selectedColumns.Width, _selectedColumns.ItemHeight);
1003
Rectangle focusRectangle =
new
(bounds.X, e.Bounds.Y + 1, textWidth + OWNERDRAWHORIZONTALBUFFER, e.Bounds.Height - 2);
1018
e.Graphics.FillRectangle(backBrush, new
Rectangle
(focusRectangle.Right + 1, e.Bounds.Y, e.Bounds.Width - focusRectangle.Right - 1, e.Bounds.Height));
1022
e.Graphics.FillRectangle(backBrush, new
Rectangle
(bounds.X, e.Bounds.Y, e.Bounds.Width - bounds.X, e.Bounds.Height));
System\Windows\Forms\Design\DesignerUtils.cs (5)
462
SelectionBorderGlyphType.Top => new
Rectangle
(originalBounds.Left - borderSize, originalBounds.Top - borderSize, originalBounds.Width + 2 * borderSize, borderSize),
463
SelectionBorderGlyphType.Bottom => new
Rectangle
(originalBounds.Left - borderSize, originalBounds.Bottom, originalBounds.Width + 2 * borderSize, borderSize),
464
SelectionBorderGlyphType.Left => new
Rectangle
(originalBounds.Left - borderSize, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize),
465
SelectionBorderGlyphType.Right => new
Rectangle
(originalBounds.Right, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize),
671
BitmapData data = b.LockBits(new
Rectangle
(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
152
return new
Rectangle
(
458
Rectangle invalidRect =
new
(
System\Windows\Forms\Design\InheritanceUI.cs (1)
37
s_inheritanceGlyphRect = new
Rectangle
(0, 0, size.Width, size.Height);
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
845
Rectangle offset =
new
(de.X - _dragBase.X, de.Y - _dragBase.Y, 0, 0);
System\Windows\Forms\Design\ParentControlDesigner.cs (7)
1120
Rectangle r = GetUpdatedRect(Rectangle.Empty, new
Rectangle
(pt.X, pt.Y, 0, 0), false);
1783
Rectangle frameRect =
new
(offset.X - _adornerWindowToScreenOffset.X,
1819
_statusCommandUI?.SetStatusInformation(new
Rectangle
(location.X, location.Y, offset.Width, offset.Height));
1932
Rectangle r =
new
(_mouseDragBase.X - _adornerWindowToScreenOffset.X,
1969
Rectangle frameRect =
new
(_mouseDragOffset.X - _adornerWindowToScreenOffset.X,
2010
_statusCommandUI?.SetStatusInformation(new
Rectangle
(offset.X, offset.Y, _mouseDragOffset.Width, _mouseDragOffset.Height));
2026
Rectangle paintRect =
new
(Math.Min(displayRect.X, clientRect.X),
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
316
Rectangle tempNewBounds = GetUpdatedRect(oldBounds, new
Rectangle
(targetX, targetY, targetWidth, targetHeight), true);
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (3)
36
Rectangle rect =
new
(_outerRect.X, _outerRect.Y, CONTAINER_WIDTH, CONTAINER_HEIGHT);
59
Rectangle glyphBounds =
new
(_outerRect.X, _outerRect.Y, CONTAINER_WIDTH, CONTAINER_HEIGHT);
72
Rectangle rect =
new
(_outerRect.X, _outerRect.Y, CONTAINER_WIDTH, CONTAINER_HEIGHT);
System\Windows\Forms\Design\SelectionUIService.cs (1)
824
Region region = new(new
Rectangle
(0, 0, 0, 0));
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (2)
131
Rectangle rect =
new
(_outerRect.X, _outerRect.Y, GRABHANDLE_WIDTH, GRABHANDLE_HEIGHT);
508
Rectangle rcOuterNew =
new
(_innerRect.X - GRABHANDLE_WIDTH, _innerRect.Y - GRABHANDLE_HEIGHT, _innerRect.Width + 2 * GRABHANDLE_WIDTH, _innerRect.Height + 2 * GRABHANDLE_HEIGHT);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1103
Rectangle gBounds =
new
(startLoc - halfSize, checkBounds.Top, DesignerUtils.s_resizeGlyphSize, checkBounds.Height);
1130
Rectangle gBounds =
new
(checkBounds.Left, startLoc - halfSize, checkBounds.Width, DesignerUtils.s_resizeGlyphSize);
System\Windows\Forms\Design\TabOrder.cs (1)
194
_region = new Region(new
Rectangle
(0, 0, 0, 0));
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
894
Rectangle textRect =
new
(classWidth + GdiPlusExtraSpace, 0, bounds.Width - (classWidth + GdiPlusExtraSpace), bounds.Height);
979
?
new
(4 + SystemInformation.HorizontalScrollBarThumbWidth, 3, s_iconWidth, s_iconHeight)
980
:
new
(3, 3, s_iconWidth, s_iconHeight);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (9)
1825
Rectangle drawRect =
new
(bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1839
Rectangle drawRect =
new
(bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1850
_hotRegion = new
Rectangle
(bounds.Left + 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4);
1854
_hotRegion = new
Rectangle
(bounds.Right - s_templateHotRegionWidth - 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4);
1871
_hotRegion = new
Rectangle
(bounds.Left + 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4);
1875
_hotRegion = new
Rectangle
(bounds.Right - s_templateHotRegionWidth - 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4);
1940
Rectangle fillRect =
new
(buttonBounds.Left + 1, buttonBounds.Top, buttonBounds.Right, buttonBounds.Bottom);
1959
Rectangle fillRect =
new
(buttonBounds.Left + 1, buttonBounds.Top, buttonBounds.Right, buttonBounds.Bottom);
1984
Rectangle drawRect =
new
(bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Automation\UiaTextRange.cs (3)
364
Rectangle endlineRectangle =
new
(endlinePoint.X, endlinePoint.Y + 2, UiaTextProvider.EndOfLineWidth, Math.Abs(_provider.Logfont.lfHeight) + 1);
400
Rectangle rectangle =
new
(startPoint.X, startPoint.Y + 2, endPoint.X - startPoint.X, clippingRectangle.Height);
866
Rectangle rect =
new
(startPoint.X, startPoint.Y + 2, endPoint.X - startPoint.X, lineHeight);