264 references to Left
PresentationUI (8)
MS\Internal\Documents\DialogDivider.cs (1)
75ClientRectangle.Left,
MS\Internal\Documents\SignatureSummaryDialog.cs (7)
647iconXOffset = bounds.Left + CellPadding.Left; 648statusXOffset = bounds.Left + IconWidth + CellPadding.Left; 649intentXOffset = bounds.Left + IconWidth + SummaryNameTextWidth + CellPadding.Left; 691signByXOffset = bounds.Left + CellPadding.Left + CellPadding.Right; 692localeXOffset = bounds.Left + CellPadding.Left + CellPadding.Right + SignByTextWidth; 696signByXOffset = bounds.Left + IconWidth + SummaryNameTextWidth + IntentTextWidth + SignByTextWidth + CellPadding.Left; 697localeXOffset = bounds.Left + IconWidth + SummaryNameTextWidth + IntentTextWidth + CellPadding.Left;
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
2883arcrect.X = baserect.Left; 2925arcrect.X = baserect.Left;
System.Windows.Forms (173)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
1060left = BoundingRectangle.Left,
System\Windows\Forms\Control.cs (3)
8168e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.Top, 8170e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.Bottom, 8231rectangle.Left + Left,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
300Point p2 = new(r.Left, r.Top); // Upper left 301Point p3 = new(r.Left, r.Bottom - 1); // Bottom inner left
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (8)
94g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Right - 2, r.Top + 1); 95g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Left + 1, r.Bottom - 2); 98g.DrawLine(windowFrame, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1); 102g.DrawLine(highlight, r.Left, r.Top, r.Right, r.Top); 103g.DrawLine(highlight, r.Left, r.Top, r.Left, r.Bottom); 106g.DrawLine(buttonShadow, r.Left + 1, r.Bottom - 2, r.Right - 2, r.Bottom - 2);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (7)
220hdc.DrawLine(high, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1); 222hdc.DrawLine(shadow, r.Left, r.Top, r.Left, r.Bottom); 223hdc.DrawLine(shadow, r.Left, r.Top, r.Right - 1, r.Top); 226hdc.DrawLine(face, r.Left + 1, r.Bottom - 2, r.Right - 1, r.Bottom - 2); 268new Point(layout.CheckBounds.Left, layout.CheckBounds.Top), 283new Point(layout.CheckBounds.Left, layout.CheckBounds.Top),
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
209new Point(check.Left, check.Top),
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
167Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (33)
2544int overflowWidth = leftEdge - _mouseBarOffset - clip.Left - DataGridViewBand.MaxBandThickness + 1; 2984r.X = Math.Max(inside.Left, r.X); 2995r.X = Math.Max(r.X, inside.Left); 3011r.X = Math.Max(inside.Left, r.X); 4926columnX = RightToLeftInternal ? _layout.RowHeaders.Left - 1 : _layout.RowHeaders.Left; 6299x = Math.Max(e.X + _mouseBarOffset, _layout.Data.Left - 1); 8599hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.Left, mouseY); 8628hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8646mouseX = RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1; 8650hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8663mouseX = RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1; 8688if (mouseX >= rectScrollingArea.Left && mouseX <= rectScrollingArea.Right) 8719if ((!RightToLeftInternal && mouseX < rectScrollingArea.Left) || (RightToLeftInternal && mouseX > rectScrollingArea.Right)) 8739xOffset = mouseX - rectScrollingArea.Left; 8751Debug.Assert((!RightToLeftInternal && mouseX > rectScrollingArea.Right) || (RightToLeftInternal && mouseX < rectScrollingArea.Left)); 8788xOffset = rectScrollingArea.Left - mouseX; 8870if ((!RightToLeftInternal && mouseX < rectScrollingArea.Left) || (RightToLeftInternal && mouseX > rectScrollingArea.Right)) 8890xOffset = mouseX - rectScrollingArea.Left; 8896if (!RightToLeftInternal && mouseX < _layout.Data.Left) 8898mouseX = _layout.Data.Left + 1; 8908else if ((!RightToLeftInternal && mouseX > rectScrollingArea.Right) || (RightToLeftInternal && mouseX < rectScrollingArea.Left)) 8941xOffset = rectScrollingArea.Left - mouseX; 8952mouseX = RightToLeftInternal ? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1; 8960mouseX = RightToLeftInternal ? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1; 8968Debug.Assert(mouseX >= rectScrollingArea.Left && mouseX <= rectScrollingArea.Right); 9312hti._colStart = RightToLeftInternal ? _layout.TopLeftHeader.Right - 1 : _layout.TopLeftHeader.Left; 9316|| (RightToLeftInternal && x - _layout.TopLeftHeader.Left < ColumnSizingHotZone)) 9323? _layout.TopLeftHeader.Left - x - 1 9428hti._colStart = RightToLeftInternal ? _layout.RowHeaders.Right - 1 : _layout.RowHeaders.Left; 9469|| (RightToLeftInternal && x - _layout.RowHeaders.Left < ColumnSizingHotZone)) 9476? _layout.RowHeaders.Left - x - 1 19283Debug.Assert(bounds.Left == 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
294int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
1020cellValueBounds.Left + IconMarginWidth : 3603rectPadding.X = bounds.Left + cellStyle.Padding.Right; 3612rectPadding.X = bounds.Left + cellStyle.Padding.Left;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
331int cellRight = columnRect.Left + columnRect.Width; 332int cellLeft = columnRect.Left; 348if (cellLeft < rowRect.Left + leftToRightRowHeadersWidth) 350cellLeft = rowRect.Left + leftToRightRowHeadersWidth;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (6)
650int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1211checkBoxX = valBounds.Left + (valBounds.Width - checkBoxSize.Width) / 2; 1215checkBoxX = valBounds.Left; 1313g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Right - 1, checkBounds.Top); 1314g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Left, checkBounds.Bottom - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
498int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 945sortGlyphLocation = new Point(valBounds.Left - 997sortGlyphLocation = new Point(valBounds.Left + (valBounds.Width - s_sortGlyphWidth) / 2,
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
32Rectangle cornerClip = new(bounds.Left, bounds.Bottom - 2, 2, 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (9)
1177int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1958g.FillRectangle(brush!, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 1976g.FillRectangle(brush!, valBounds.Left + 1, valBounds.Top + 1, valBounds.Width - 2, valBounds.Height - 2); 1987g.FillRectangle(brush!, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 2014DataGridView.RightToLeftInternal ? valBounds.Left : valBounds.Right - dropWidth, 2022DataGridView.RightToLeftInternal ? valBounds.Left + 1 : valBounds.Right - dropWidth - 1, 2031DataGridView.RightToLeftInternal ? valBounds.Left + 2 : valBounds.Right - dropWidth - 2, 2155Point middle = new(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2178Point middle = new(dropRect.Left + (dropRect.Width - 1) / 2,
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
410int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
551int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
530int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1027: bounds.Left + RowHeaderIconMarginWidth;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
403int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
146int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (17)
222clipMiddle.X = clipLeft.Left - clipMiddle.Width; 253g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Left + 1, bounds.Height - 1); 254g.DrawLine(dark, bounds.Left, bounds.Top + 1, bounds.Left, bounds.Height - 2); 257g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 258g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2); 261g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Width - 1, bounds.Top + 1); 262g.DrawLine(dark, bounds.Left, bounds.Top, bounds.Width - 2, bounds.Top); 321bounds.Left, boxTop - 1, bounds.Left, bounds.Height - 2, // Left 322bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2, // Right 323bounds.Left, boxTop - 1, textBounds.X - 3, boxTop - 1, // Top-left 333bounds.Left + 1, boxTop, bounds.Left + 1, bounds.Height - 1, // Left 334bounds.Left, bounds.Height - 1, bounds.Width, bounds.Height - 1, // Right 335bounds.Left + 1, boxTop, textBounds.X - 2, boxTop, // Top-left
System\Windows\Forms\Controls\ListView\ListView.cs (8)
3243x = Math.Max(itemBounds.Left, iconBounds.Left); 3247x = Math.Max(itemBounds.Left, iconBounds.Left); 3251x = Math.Max(itemBounds.Left, iconBounds.Left) - 1; 3255x = Math.Max(itemBounds.Left, iconBounds.Left) + 1;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
72groupRect.left = Math.Max(listViewBounds.Left, groupRect.left);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
956int xCenter = r.Left + (r.Right - r.Left) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
458newBounds.X = _dragBaseRect.Left + delta;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
582gripLocation = new Point(SizeGripBounds.Left, SizeGripBounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4193gripRectangle.X = displayRect.Left;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
142Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
429_maxItemSize.Width = (_arrowRectangle.Right + _arrowPadding.Right) - _imageMarginBounds.Left;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
375g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (8)
425g.DrawLine(pen, bounds.Left, bounds.Height - 1, bounds.Right, bounds.Height - 1); 1047e.ImageRectangle.Left - 2, 1050: new Rectangle(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2); 1270Point start = new(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1271Point end = new(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1529g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY); 1535g.DrawLine(highlightColorPen, bounds.Left + 1, startY, bounds.Right - 1, startY); 1648Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
618Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
152insertionRect = new Rectangle(item.Bounds.Left, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.Vertical) - 1); 213if ((orig.Left + widthUnit) >= check.X)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (5)
214int lastLeft = _displayRectangle.Left; 235lastLeft = clientRectangle.Left; 430int x = _displayRectangle.Left + itemMargin.Left; 501if ((itemBounds.Right > _displayRectangle.Right) || (itemBounds.Left < _displayRectangle.Left))
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (6)
735g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right, startY); 739g.DrawLine(SystemPens.ButtonHighlight, bounds.Left, startY, bounds.Right, startY); 755g.DrawLine(topPen, bounds.Left, bounds.Top, bounds.Right - 1, bounds.Top); 756g.DrawLine(leftPen, bounds.Left, bounds.Top, bounds.Left, bounds.Bottom - 1); 758g.DrawLine(bottomPen, bounds.Left, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
259g.FillRectangle(brush, 0, 0, clientRect.Left, Height); // left border
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2936bounds.Left,
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
531Rectangle clipLeft = new(bounds.Left, bounds.Top, border, bounds.Height); 532Rectangle clipTop = new(bounds.Left, bounds.Top, bounds.Width, border); 534Rectangle clipBottom = new(bounds.Left, bounds.Bottom - border, bounds.Width, border);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
324Point pt1 = new(clientRect.Left, clientRect.Bottom - 1);
System\Windows\Forms\Internal\WinFormsUtils.cs (3)
93else if (bounds.Left < constrainingBounds.Left) 96bounds.X = constrainingBounds.Left;
System\Windows\Forms\Layout\DefaultLayout.cs (3)
306left = Math.Max(Math.Abs(left), Math.Abs(cachedBounds.Left)); 313left = left > 0 ? left : element.Bounds.Left; 743anchorInfo.Left = elementBounds.Left;
System\Windows\Forms\Layout\LayoutUtils.cs (4)
543Debug.Assert(region1.Right == region2.Left, "Adjacency error."); 548Debug.Assert(region2.Right == region1.Left, "Adjacency error."); 591int left = (specified & AnchorStyles.Left) != 0 ? substitutionBounds.Left : originalBounds.Left;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
822_vScrollBar.Left = availableRect.Left;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1280graphics.FillRectangle(brush, bounds.Left + 1, bounds.Top + 1, bounds.Width - 2, bounds.Height - 2);
System\Windows\Forms\Rendering\DCMapping.cs (2)
47viewportOrg.X + bounds.Left, 60viewportOrg.X + bounds.Left,
System\Windows\Forms\ToolTip\ToolTip.cs (8)
1327left = (rect.left < screen.WorkingArea.Left) ? screen.WorkingArea.Left : rect.left, 1482int pointX = (toolRectangle.Left + toolRectangle.Right) / 2; 1550int centeredX = toolRectangle.Left + toolRectangle.Width / 2 - width / 2; // tooltip will be aligned with tool vertically 1558new Rectangle(toolRectangle.Left - width, centeredY, width, height), 1630return new Point(optimalLocation.Left, optimalLocation.Top); 1938if (moveToLocation.X < screen.WorkingArea.Left) 1940moveToLocation.X = screen.WorkingArea.Left;
System.Windows.Forms.Design (72)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (6)
205_dropDownRectangle.X = bounds.Left + 1; 207g.DrawLine(SystemPens.ButtonHighlight, bounds.Left + PushButtonWidth, 4, bounds.Left + PushButtonWidth, bounds.Bottom - 4); 208g.DrawLine(SystemPens.ButtonHighlight, bounds.Left + PushButtonWidth + 1, 4, bounds.Left + PushButtonWidth + 1, bounds.Bottom - 4); 245Convert.ToInt32(dropDownRect.Left + dropDownRect.Width / 2),
System\ComponentModel\Design\DesignerActionPanel.cs (6)
245if (rectangleAnchor.Left - sizePanel.Width < rectScreen.Left) 294x = rectScreen.Left; 300x = rectScreen.Left; 324x = rectangleAnchor.Left - sizePanel.Width - EDGE_SPACE; 330x = rectangleAnchor.Left - sizePanel.Width - EDGE_SPACE;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
168int maxDelta = location.X - workingArea.Left;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
210pe.Graphics.DrawImage(image, _bounds.Left, _bounds.Top);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (16)
204int xOffset = controlBounds.Left; 833lines[i].X2 = Math.Max(dragRect.Left, lines[i].OriginalBounds.Left); 837lines[i].X1 = lines[i].OriginalBounds.Left; 838lines[i].X2 = dragRect.Left; 851int coord = Math.Max(dragRect.Left, lines[i].OriginalBounds.Left); 954line = new Line(Math.Min(dragBounds.Left + (_snapPointX != INVALID_VALUE ? _snapPointX : 0), bounds.Left), snapLine.Offset, 1018if (bounds.Left < dragBounds.Left) 1020if (bounds.Left + bounds.Width < dragBounds.Left) 1025else if (dragBounds.Left + dragBounds.Width < bounds.Left) 1144Rectangle tempDragRect = new(dragBounds.Left + snapPoint.X, dragBounds.Top + snapPoint.Y, dragBounds.Width, dragBounds.Height);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
108int xDelta = controlBounds.Left % _parentGridSize.Width; 715xOffset = !fRTL ? controlBounds.Right : controlBounds.Left; 728xPos = !fRTL ? controlBounds.Left : controlBounds.Right;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (7)
128if (line.X1 == _lastRectangle.Left) 132offset.X = _lastRectangle.Left - mouseLoc.X; 186if (Math.Max(line.X1, line.X2) <= _lastRectangle.Left) 190offset.X = _lastRectangle.Left - mouseLoc.X; 215offset.X = _lastRectangle.Left - mouseLoc.X; 236new(SnapLineType.Left, r.Left), 242new(SnapLineType.Vertical, r.Left - 4, SnapLine.MarginLeft, SnapLinePriority.Always),
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
229pe.Graphics.DrawImage(_image, _glyphBounds.Left, _glyphBounds.Top);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2031int w = bounds.Left + bounds.Width;
System\Windows\Forms\Design\DesignerUtils.cs (8)
255PInvoke.RoundRect(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom, 2, 2); 270PInvoke.Rectangle(hDC, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom); 286bounds.Left + s_lockedHandleUpperOffset, 287bounds.Top, bounds.Left + s_lockedHandleUpperOffset + s_lockedHandleSizeUpper, 294PInvoke.Rectangle(hDC, bounds.Left, bounds.Top + s_lockedHandleLowerOffset, bounds.Right, bounds.Bottom); 462SelectionBorderGlyphType.Top => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, originalBounds.Width + 2 * borderSize, borderSize), 463SelectionBorderGlyphType.Bottom => new Rectangle(originalBounds.Left - borderSize, originalBounds.Bottom, originalBounds.Width + 2 * borderSize, borderSize), 464SelectionBorderGlyphType.Left => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize),
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (11)
153bounds.Left - (IsRtl ? margin.Right : margin.Left), 289if (marginBounds.Left < currentMinTopLeft) 291currentMinTopLeft = marginBounds.Left; 396ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom)); 402ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top)); 405ReDrawIBar(new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom)); 418ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom)); 421ReDrawIBar(new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom)); 424ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top));
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
319snapLines.Add(new SnapLine(SnapLineType.Vertical, displayRectangle.Left, SnapLine.PaddingLeft, SnapLinePriority.Always));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
862int startX = isRTL ? rc.Right : rc.Left; 884graphics.DrawLine(pen, rc.Left, startY, rc.Right, startY); 1136Rectangle gBounds = new(checkBounds.Left, startLoc - halfSize, checkBounds.Width, DesignerUtils.s_resizeGlyphSize);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
579if (parentBounds.Contains(r.Left, r.Top))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1898_hotRegion = new Rectangle(bounds.Left + 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4); 1919_hotRegion = new Rectangle(bounds.Left + 2, bounds.Top + 2, s_templateHotRegionWidth, bounds.Bottom - 4); 1979g.DrawLine(p, buttonBounds.Left, buttonBounds.Top + 1, buttonBounds.Left, buttonBounds.Bottom - 1); 1988Rectangle fillRect = new(buttonBounds.Left + 1, buttonBounds.Top, buttonBounds.Right, buttonBounds.Bottom); 2007Rectangle fillRect = new(buttonBounds.Left + 1, buttonBounds.Top, buttonBounds.Right, buttonBounds.Bottom);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
14DrawRectangle(hdc.HDC, rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Bottom, hpen); 132DrawAndFillEllipse(hdc.HDC, pen, brush, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom);
System.Windows.Forms.UI.IntegrationTests (7)
ButtonTests.cs (2)
144Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 200Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom);
DragDropTests.cs (3)
199X = (startCoordinates.X - vscreen.Left) * DesktopNormalizedMax / vscreen.Width + DesktopNormalizedMax / (vscreen.Width * 2), 204X = (endCoordinates.X - vscreen.Left) * DesktopNormalizedMax / vscreen.Width + DesktopNormalizedMax / (vscreen.Width * 2), 916if (((MousePosition.X - _screenOffset.X) < form.DesktopBounds.Left) ||
Infra\ControlTestBase.cs (1)
397return new Point(GetMiddle(cell.Right, cell.Left), GetMiddle(cell.Top, cell.Bottom));
ListBoxAccesibleObjectTests.cs (1)
55Point testPoint = listBox.PointToScreen(new Point(itemBounds.Left + 1, itemBounds.Top + 1));