21 writes to left
System.Private.Windows.Core (1)
Windows.Win32.RECT.g.cs (1)
52 this.left = left;
System.Windows.Forms (20)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1998rect.left = _control.Left; 2003rect.left = x;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
3594left = (int)portion 3623left = 0 3670left = (int)portion,
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
67groupRect.left = Math.Max(listViewBounds.Left, groupRect.left);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
42clientRect.left += offsetX;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
239{ *((IntPtr*)&rc.left) = Handle; } 262{ *((IntPtr*)&rc.left) = Handle; } 626{ *((IntPtr*)&rc.left) = Handle; }
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2538*((IntPtr*)&rc.left) = nmtv->itemOld.hItem;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
127rc2.left = rc.left + SIZE_ICON_X + 2 * PADDING_HORZ; 161rc2.left = rc.left; 172rc2.left = rc.left; 177rc2.left = rc.right - 1;
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
305dialogSettings.rtMinMargin.left = margins.Left; 314dialogSettings.rtMargin.left = margins.Left; 322dialogSettings.rtMargin.left = Math.Max(dialogSettings.rtMargin.left, dialogSettings.rtMinMargin.left);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1070rc.left -= sz.Width;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1327left = (rect.left < screen.WorkingArea.Left) ? screen.WorkingArea.Left : rect.left,
53 references to left
System.Private.Windows.Core (5)
Windows.Win32.RECT.g.cs (5)
62 internal readonly int Width => unchecked(this.right - this.left); 66 internal readonly bool IsEmpty => this.left == 0 && this.top == 0 && this.right == 0 && this.bottom == 0; 68 internal readonly int X => this.left; 74 public static implicit operator global::System.Drawing.Rectangle(RECT value) => new global::System.Drawing.Rectangle(value.left, value.top, value.Width, value.Height); 76 public static implicit operator global::System.Drawing.RectangleF(RECT value) => new global::System.Drawing.RectangleF(value.left, value.top, value.Width, value.Height);
System.Windows.Forms (47)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
288clientLocation.X = Math.Max(clientLocation.X, clientRectangle.left);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (6)
459Point p1 = new(rc.left, rc.top); 460Point p2 = new(rc.right - rc.left, rc.bottom - rc.top); 2009rect.right = rect.left + _control.Width; 2014rect.right = rect.left + width; 2035x = rect.left; 2041width = rect.right - rect.left;
System\Windows\Forms\Control.cs (3)
1590if ((r.left <= p.X && p.X < r.right && r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND) 8836clientOffset = new(clientOffset.X - windowRect.left, clientOffset.Y - windowRect.top); 10874rect.left,
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
177xDest = rect.left; 184xDest = rect.left;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
361clientLocation.X = Math.Max(clientLocation.X, clientRectangle.left);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1394int comboXMid = PARAM.SignedLOWORD(m.LParamInternal) + (editRectMid.left - comboRectMid.left);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
302if ((r.left <= p.X && p.X < r.right && r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1513if (r.left <= x && x < r.right && r.top <= y && y < r.bottom)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
67groupRect.left = Math.Max(listViewBounds.Left, groupRect.left);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
63int x = rectangle.left + (rectangle.Width / 2);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3824Point location = parent.PointToScreen(new(rect.left, rect.top));
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
126clientLocation.X = Math.Max(clientLocation.X, clientRectangle.left);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (2)
36int offsetX = -rect.left; // one to get back to 0,0, another to translate 119absoluteClientRectangle.left,
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
632visible = (rc.bottom > 0 && rc.right > 0 && rc.top < size.Height && rc.left < size.Width);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
411RECT posRect = new(0, 0, lprcPosRect->right - lprcPosRect->left, lprcPosRect->bottom - lprcPosRect->top);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (5)
127rc2.left = rc.left + SIZE_ICON_X + 2 * PADDING_HORZ; 161rc2.left = rc.left; 167rc2.right = rc.left + 1; 172rc2.left = rc.left; 269PInvoke.PatBlt(dc, rc.left, rc.top, rc.Width, rc.Height, ROP_CODE.PATCOPY);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
99int x = screen.X + (screen.Width - r.right + r.left) / 2;
System\Windows\Forms\Form.cs (1)
3911p.X = (ownerRect.left + ownerRect.right - s.Width) / 2;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
453if ((r.left <= p.X && p.X < r.right && r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
System\Windows\Forms\MDI\MDIClient.cs (1)
288-rect.left,
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
251Left = data.rtMargin.left, 322dialogSettings.rtMargin.left = Math.Max(dialogSettings.rtMargin.left, dialogSettings.rtMinMargin.left);
System\Windows\Forms\ToolTip\ToolTip.cs (10)
1320if (cursorLocation.X < rect.left || cursorLocation.X > rect.right || 1327left = (rect.left < screen.WorkingArea.Left) ? screen.WorkingArea.Left : rect.left, 1333p.X = visibleRect.left + visibleRect.Width / 2; 1410int pointX = r.left + point.X; 1430int pointX = r.left + point.X; 1448int pointX = r.left + x; 1466int pointX = r.left + x; 2012if (cursorLocation.X >= r.left && cursorLocation.X <= r.right && 2110rect.left,
System.Windows.Forms.Interop.Tests (1)
RichTextBoxTests.cs (1)
135Assert.Equal(6578, value.rc.left);