10 writes to left
System.Windows.Forms (10)
winforms\Managed\System\WinForms\Control.cs (2)
542
rect.
left
= rect.right = rect.top = rect.bottom = 0;
12540
rect.
left
= rect.right = rect.top = rect.bottom = 0;
winforms\Managed\System\WinForms\ControlPaint.cs (1)
965
rc.
left
-= sz.Width;
winforms\Managed\System\WinForms\ListView.cs (3)
3426
itemrect.
left
= (int)portion;
3449
itemrect.
left
= 0;
3519
itemrect.
left
= (int)portion;
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3084
this.
left
= left;
3091
this.
left
= r.Left;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
650
rect.
left
+= offsetX;
winforms\Managed\System\WinForms\ToolTip.cs (1)
1572
visibleRect.
left
= (r.left < screen.WorkingArea.Left) ? screen.WorkingArea.Left:r.left;
97 references to left
System.Windows.Forms (97)
winforms\Managed\System\WinForms\ComboBox.cs (13)
1616
int comboXMid = NativeMethods.Util.SignedLOWORD(m.LParam) + (editRectMid.
left
- comboRectMid.
left
);
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);
3459
graphics.FillRectangle(brush, rect.
left
, rect.top,
3460
rect.right - rect.
left
, rect.bottom - rect.top);
3464
graphics.FillRectangle(SystemBrushes.Control, rect.
left
, rect.top,
3465
rect.right - rect.
left
, rect.bottom - rect.top);
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);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
180
int x = screen.X + (screen.Width - r.right + r.
left
) / 2;
winforms\Managed\System\WinForms\Control.cs (24)
547
clientWidth = width - (rect.right - rect.
left
);
2091
if ((r.
left
<= p.x && p.x < r.right && r.top <= p.y && p.y < r.bottom) || UnsafeNativeMethods.GetCapture() == Handle)
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);
6626
int adornmentWidth = (adornments.right - adornments.
left
);
9406
PaintBackground(pevent, new Rectangle(rect.
left
, rect.top, rect.right, rect.bottom));
10382
clientOffset = new Point(clientOffset.X - windowRect.
left
, clientOffset.Y - windowRect.top);
11063
return Rectangle.FromLTRB(rect.
left
, rect.top, rect.right, rect.bottom);
11080
return Rectangle.FromLTRB(rect.
left
, rect.top, rect.right, rect.bottom);
12525
UpdateBounds(rect.
left
, rect.top, rect.right - rect.
left
,
12545
int clientWidth = width - (rect.right - rect.
left
);
12966
using (PaintEventArgs pevent = new PaintEventArgs(dc, Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom))) {
16195
return Rectangle.FromLTRB(rectangle.
left
, rectangle.top, rectangle.right, rectangle.bottom);
16698
SafeNativeMethods.SetViewportOrgEx(new HandleRef(null, hdcDraw), rc.
left
, rc.top, pVp);
16699
SafeNativeMethods.SetViewportExtEx(new HandleRef(null, hdcDraw), rc.right - rc.
left
, rc.bottom - rc.top, sViewportExt);
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));
18418
clipRegion = SafeNativeMethods.CreateRectRgn(rcIntersect.
left
, rcIntersect.top,
19371
xDest = rect.
left
;
19373
cxDest = rect.right - rect.
left
;
19378
xDest = rect.
left
;
winforms\Managed\System\WinForms\Cursor.cs (1)
186
return Rectangle.FromLTRB(r.
left
, r.top, r.right, r.bottom);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (3)
705
IntNativeMethods.RECT rc = new IntNativeMethods.RECT(rcIn.
left
, rcIn.top, rcIn.right, rcIn.bottom);
842
SafeNativeMethods.PatBlt(new HandleRef(null, dc), rc.
left
, rc.top, rc.right - rc.
left
, rc.bottom - rc.top, NativeMethods.PATCOPY);
winforms\Managed\System\WinForms\Form.cs (4)
3434
Rectangle currentClient = Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom);
3458
currentClient = Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom);
3595
return new Size(result.right - result.
left
, result.bottom - result.top);
4460
p.X = (ownerRect.
left
+ ownerRect.right - s.Width) / 2;
winforms\Managed\System\WinForms\GroupBox.cs (2)
774
graphics.FillRectangle(b, rect.
left
, rect.top,
775
rect.right - rect.
left
, rect.bottom - rect.top);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
409
if ((r.
left
<= p.x && p.x < r.right && r.top <= p.y && p.y < r.bottom) || UnsafeNativeMethods.GetCapture() == Handle)
winforms\Managed\System\WinForms\ListBox.cs (3)
1507
return Rectangle.FromLTRB(rect.
left
, rect.top, rect.right, rect.bottom);
1566
if (r.
left
<= x && x < r.right && r.top <= y && y < r.bottom) {
2329
Rectangle bounds = Rectangle.FromLTRB(dis.rcItem.
left
, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom);
winforms\Managed\System\WinForms\ListView.cs (4)
3432
return Rectangle.FromLTRB(itemrect.
left
, itemrect.top, itemrect.right, itemrect.bottom);
3453
return Rectangle.FromLTRB(itemrect.
left
, itemrect.top, itemrect.right, itemrect.bottom);
3526
Rectangle result = Rectangle.FromLTRB(itemrect.
left
, itemrect.top, itemrect.right, itemrect.bottom);
5473
Rectangle r = Rectangle.FromLTRB(nmcd->rc.
left
, nmcd->rc.top, nmcd->rc.right, nmcd->rc.bottom);
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
65
return Rectangle.FromLTRB(rect.
left
, rect.top, rect.right, rect.bottom);
winforms\Managed\System\WinForms\MDIClient.cs (1)
300
rgn2 = SafeNativeMethods.CreateRectRgn(-rect.
left
, -rect.top,
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\NativeMethods.cs (1)
3103
return new System.Drawing.Size(this.right - this.
left
, this.bottom - this.top);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
185
Point locPoint = parent.PointToScreen(new Point(rect.
left
, rect.top));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3475
OnContentsResized(new ContentsResizedEventArgs(Rectangle.FromLTRB(reqResize.rc.
left
, reqResize.rc.top, reqResize.rc.right, reqResize.rc.bottom)));
winforms\Managed\System\WinForms\Screen.cs (2)
92
bounds = Rectangle.FromLTRB(info.rcMonitor.
left
, info.rcMonitor.top, info.rcMonitor.right, info.rcMonitor.bottom);
249
workingArea = Rectangle.FromLTRB(info.rcWork.
left
, info.rcWork.top, info.rcWork.right, info.rcWork.bottom);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
590
if ((r.
left
<= p.x && p.x < r.right && r.top <= p.y && p.y < r.bottom) || UnsafeNativeMethods.GetCapture() == Handle)
winforms\Managed\System\WinForms\StatusBar.cs (1)
1039
Rectangle r = Rectangle.FromLTRB(dis.rcItem.
left
, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom);
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\SystemInformation.cs (1)
450
return Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom);
winforms\Managed\System\WinForms\TabControl.cs (3)
437
Rectangle r = Rectangle.FromLTRB(rect.
left
, rect.top, rect.right, rect.bottom);
1252
return Rectangle.FromLTRB(rect.
left
, rect.top, rect.right, rect.bottom);
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));
winforms\Managed\System\WinForms\ToolBar.cs (5)
779
if ((rect.right - rect.
left
) > maxWidth)
780
maxWidth = rect.right - rect.
left
;
1548
((ContextMenu)menu).Show(this, new Point(rc.
left
, rc.bottom));
1558
tpm.rcExclude_left = rc.
left
;
1568
rc.
left
, rc.bottom,
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
336
return Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
644
int offsetX = -rect.
left
; // one to get back to 0,0, another to translate
728
hClientRegion = new HandleRef(this, SafeNativeMethods.CreateRectRgn(absoluteClientRectangle.
left
, absoluteClientRectangle.top, absoluteClientRectangle.right, absoluteClientRectangle.bottom));
winforms\Managed\System\WinForms\ToolTip.cs (11)
1566
if ( cursorLocation.X < r.
left
|| cursorLocation.X > r.right ||
1572
visibleRect.left = (r.
left
< screen.WorkingArea.Left) ? screen.WorkingArea.Left:r.
left
;
1577
p.X = visibleRect.
left
+ (visibleRect.right - visibleRect.
left
)/2;
1661
int pointX = r.
left
+ point.X;
1688
int pointX = r.
left
+ point.X;
1713
int pointX = r.
left
+ x;
1738
int pointX = r.
left
+ x;
2252
if (cursorLocation.X >= r.
left
&& cursorLocation.X <= r.right &&
2355
r.
left
, r.top, currentTooltipSize.Width, currentTooltipSize.Height,
winforms\Managed\System\WinForms\TreeNode.cs (6)
282
unsafe { *((IntPtr *) &rc.
left
) = Handle; }
289
return Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom);
302
unsafe { *((IntPtr *) &rc.
left
) = Handle; }
312
return Rectangle.FromLTRB(rc.
left
, rc.top, rc.right, rc.bottom);
635
unsafe { *((IntPtr *) &rc.
left
) = Handle; }
640
visible = (rc.bottom > 0 && rc.right > 0 && rc.top < size.Height && rc.
left
< size.Width);
winforms\Managed\System\WinForms\TreeView.cs (1)
2578
*((IntPtr *) &rc.
left
) = nmtv->itemOld.hItem;