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