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