25 writes to Left
System.Windows.Forms (25)
winforms\Managed\System\WinForms\Control.cs (2)
11510padding.Left = (int)Math.Round(padding.Left * dx); 11512margins.Left = (int)Math.Round(margins.Left * dx);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (1)
438value.Left = Math.Max(0, value.Left);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
140padding.Left = Math.Max(0, padding.Left); 365padding.Left = temp;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1223elementMargin.Left = temp;
winforms\Managed\System\WinForms\Padding.cs (1)
240Left = 0;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
241toolStripPadding.Left = 2;
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
1626padding.Left = value;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (16)
158padding.Left = 0; 1018cellMargin.Left -= spaceToFree; 1025cellMargin.Left = 0; 1088cellMargin.Left -= requiredSpace; 1095cellMargin.Left = 0; 1106cellMargin.Left += spaceToFree; 1153cellMargin.Left -= requiredSpace; 1160cellMargin.Left = 0; 1192cellMargin.Left += spaceToFree; 1220cellMargin.Left += freedSpace; 1251nextCellMargin.Left += spaceOccupiedByCell; 1333nextCellMargin.Left -= requiredSpace; 1349nextCellMargin.Left = Math.Max(0, nextCellMargin.Left - freedSpace); 1365lastCellMargin.Left = Math.Max(0,locationToDrag.X - nextCell.Bounds.Right); 1383newCellMargin.Left = freedSpace - controlToDragWidth; 1411cellMargin.Left = Math.Max(0,locationToDrag.X-Row.Margin.Left);
77 references to Left
System.Windows.Forms (74)
winforms\Managed\System\WinForms\ArrangedElement.cs (2)
77Debug.Assert((value.Right >= 0 && value.Left >= 0 && value.Top >= 0 && value.Bottom >=0), "who's setting margin negative?"); 87Debug.Assert((value.Right >= 0 && value.Left >= 0 && value.Top >= 0 && value.Bottom >=0), "who's setting padding negative?");
winforms\Managed\System\WinForms\Control.cs (2)
11510padding.Left = (int)Math.Round(padding.Left * dx); 11512margins.Left = (int)Math.Round(margins.Left * dx);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
749valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewCell.cs (5)
4358rectPadding.X = bounds.Right - cellStyle.Padding.Left; 4359rectPadding.Width = cellStyle.Padding.Left; 4365rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.Height); 4370rectPadding.X = bounds.Left + cellStyle.Padding.Left; 4545borderAndPaddingWidths.X += cellStyle.Padding.Left;
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (3)
429if (value.Left < 0 || value.Right < 0 || value.Top < 0 || value.Bottom < 0) 438value.Left = Math.Max(0, value.Left); 452Debug.Assert(value.Left >= 0);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1232valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (2)
814valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 908valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
750borderAndPaddingWidths.X += cellStyle.Padding.Left; 2182valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
834imgBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1034valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
803valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top); 881valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
730valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
326valBounds.Offset(cellStyle.Padding.Left, cellStyle.Padding.Top);
winforms\Managed\System\WinForms\GroupBox.cs (1)
220return new Rectangle(padding.Left, fontHeight + padding.Top, Math.Max(size.Width - padding.Horizontal, 0), Math.Max(size.Height - fontHeight - padding.Vertical, 0));
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
523preferredSizeForAnchoring.Width -= containerPadding.Left;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
420newBounds.X = DisplayRect.Right - bounds.X - bounds.Width + ElementProxy.Margin.Left - ElementProxy.Margin.Right;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (4)
140padding.Left = Math.Max(0, padding.Left); 324rect.X -= padding.Left; 332rect.X += padding.Left; 364padding.Top = padding.Left;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (1)
1222elementMargin.Right = elementMargin.Left;
winforms\Managed\System\WinForms\Padding.cs (13)
136return Left + Right; 183return new Padding(p1.Left + p2.Left, p1.Top + p2.Top, p1.Right + p2.Right, p1.Bottom + p2.Bottom ); 195return new Padding(p1.Left - p2.Left, p1.Top - p2.Top, p1.Right - p2.Right, p1.Bottom - p2.Bottom ); 204return p1.Left == p2.Left && p1.Top == p2.Top && p1.Right == p2.Right && p1.Bottom == p2.Bottom; 220return Left 228return "{Left=" + Left.ToString(CultureInfo.CurrentCulture) + ",Top=" + Top.ToString(CultureInfo.CurrentCulture) + ",Right=" + Right.ToString(CultureInfo.CurrentCulture) + ",Bottom=" + Bottom.ToString(CultureInfo.CurrentCulture) + "}"; 266Debug.Assert(All == Left && Left == Top && Top == Right && Right == Bottom, "_all is true, but All/Left/Top/Right/Bottom inconsistent."); 360args[nArg++] = intConverter.ConvertToString(context, culture, padding.Left); 378new object[] {padding.Left, padding.Top, padding.Right, padding.Bottom});
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
1549(owner.Padding.Left != -1 1617return owner.Padding.Left;
winforms\Managed\System\WinForms\ToolStrip.cs (3)
4297gripRectangle.X += Grip.Margin.Left; 5482insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.Top, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth); 5485insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.Bottom, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
285dropDownArrowRect = new Rectangle(scaledDropDownArrowPadding.Left,0, dropDownArrowSize.Width, ownerItem.Bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (6)
122int textPadding = (rightToLeft == RightToLeft.Yes) ? scaledTextPadding.Right : scaledTextPadding.Left; 416nextPoint = new Point(scaledCheckPadding.Left, scaledCheckPadding.Top); 420nextPoint.X = checkRectangle.Right + scaledCheckPadding.Right + scaledImagePadding.Left; 472nextPoint.X = imageMarginBounds.Right+ scaledTextPadding.Left; 477nextPoint.X = textRectangle.Right+ scaledTextPadding.Right + scaledArrowPadding.Left; 499trimPadding += scaledTextPadding.Left;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1194rect.X -= dropDownMenu.Padding.Left;
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
1056index = (clientLocation.Y <= this.Padding.Left) ? 0 : index; 1060index = (clientLocation.X <= this.Padding.Left) ? 0 : index;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (10)
419margins[i] = c.Margin.Left; 428cachedBounds.X -= Math.Max(0, margins[i] - c.Margin.Left); 977dragBounds.X -= Row.Margin.Left + ToolStripPanel.Padding.Left +4; 1017if (cellMargin.Left >= spaceToFree) { 1024spaceToFree -= lastCellOnRow.Margin.Left; 1332if (nextCellMargin.Left > requiredSpace) { 1349nextCellMargin.Left = Math.Max(0, nextCellMargin.Left - freedSpace); 1411cellMargin.Left = Math.Max(0,locationToDrag.X-Row.Margin.Left); 1482dragBounds.Width += (nextRowBounds.Width >> 2) + Row.Margin.Right + ToolStripPanel.RowsInternal[index + 1].Margin.Left;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
1283bounds.X += dropDownMenu.Padding.Left -2;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (3)
331lastRight = x - itemMargin.Left; 342x = lastLeft + itemMargin.Left; 455int x = displayRectangle.Left + itemMargin.Left;
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
626Width = this.themePanel.Right + this.themePanel.Left + Margin.Left + Margin.Right;
System.WorkflowServices (2)
System\Workflow\Activities\Design\GradientPanel.cs (2)
84frameRect.X -= Margin.Left; 86frameRect.Width += Margin.Left + Margin.Right;