28 writes to Left
System.Windows.Forms (7)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
184control.Left = Twip2Pixel(value, xDirection: true);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
463_horizScrollBar.Left = 0; 470_vertScrollBar.Left = ClientRectangle.Width - _vertScrollBar.Width;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
315Left -= (Width - oldWidth);
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
69Left = _focusHOffset, 822_vScrollBar.Left = availableRect.Left; 827_vScrollBar.Left = availableRect.Right - _vScrollBar.Width;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\FormatStringDialog.cs (2)
93_okButton.Left += formatControlRightSideOffset - cancelButtonRightSideOffset; 94_cancelButton.Left += formatControlRightSideOffset - cancelButtonRightSideOffset;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
460controls[i].Left = adjustedLoc.X;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ControlTests.Properties.cs (15)
6690control.Left = value; 6712control.Left = value; 6782control.Left = value; 6804control.Left = value; 6880control.Left = value; 6905control.Left = value; 6991control.Left = value; 7020control.Left = value; 7069control.Left = 1; 7074control.Left = 1; 7079control.Left = 2; 7106control.Left = 1; 7112control.Left = 1; 7118control.Left = 2; 7126control.Left = 1;
WinFormsControlsTest (3)
RichTextBoxes.cs (3)
128Label textLabel = new() { Left = 50, Top = 20, Text = text }; 129TextBox textBox = new() { Left = 50, Top = 50, Width = 400 }; 130Button confirmation = new() { Text = "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.OK };
302 references to Left
System.Windows.Forms (25)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
179get => Pixel2Twip(GetControl()?.Left ?? 0, xDirection: true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1998rect.left = _control.Left;
System\Windows\Forms\Control.cs (5)
8227Rectangle shift = new(-Left, -Top, parent.Width, parent.Height); 8231rectangle.Left + Left, 8239PInvokeCore.OffsetViewportOrgEx(hdc, -Left, -Top, lppt: null); 10046/// <param name="x">The new <see cref="Left" /> property value of the control.</param> 11898if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOMOVE) == 0 && (wp->x != Left || wp->y != Top))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
156_titleLabel.Left, 163_descriptionLabel.Left,
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
420OnSplitterMoved(new SplitterEventArgs(Left, Top, (Left + bounds.Width / 2), (Top + bounds.Height / 2))); 746if (target.Right == Left) 753if (target.Left == Right) 824int x = e.X + Left; 958int size = GetSplitSize(splitTarget, x - Left + _anchor.X, y - Top + _anchor.Y);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
748private bool ShouldSerializeLocation() => Left != 0 || Top != 0;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1940Left, 1953Left,
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (1)
216x = _control.Left - size.Width - _iconPadding;
System\Windows\Forms\Form.cs (3)
4212form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None); 4355Point pointToSnap = new(button.Left + button.Width / 2, button.Top + button.Height / 2); 5875return Left != 0 || Top != 0;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
767r.X = _splitterRect.X - Left; 991SplitterCancelEventArgs se = new(Left + SplitterRectangle.X + SplitterRectangle.Width / 2, Top + SplitterRectangle.Y + SplitterRectangle.Height / 2, xSplit, ySplit);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
464private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height);
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
272Point pt = new(c.Left, c.Top);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
945if (propLeft is not null && _resizeComponents[i].resizeControl.Left != _resizeComponents[i].resizeBounds.X) 947propLeft.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Left);
System\Windows\Forms\Design\FormatStringDialog.cs (1)
103result += control.Left;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
420if (newChild.Left == 0 && newChild.Top == 0 && newChild.Width >= Control.Width && newChild.Height >= Control.Height)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
110Point pt = new(c.Left, c.Top);
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (1)
95Assert.Equal(0, control.Left);
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
94result += control.Left;
System.Windows.Forms.Tests (263)
System\Windows\Forms\AxHostTests.cs (2)
87Assert.Equal(0, control.Left); 181Assert.Equal(0, control.Left);
System\Windows\Forms\ButtonBaseTests.cs (1)
85Assert.Equal(0, control.Left);
System\Windows\Forms\ButtonTests.cs (1)
88Assert.Equal(0, control.Left);
System\Windows\Forms\CheckBoxTests.cs (1)
89Assert.Equal(0, control.Left);
System\Windows\Forms\ComboBoxTests.cs (1)
97Assert.Equal(0, control.Left);
System\Windows\Forms\ContainerControlTests.cs (1)
93Assert.Equal(0, control.Left);
System\Windows\Forms\ControlTests.cs (5)
71Assert.Equal(0, control.Left); 160Assert.Equal(0, control.Left); 256Assert.Equal(left, control.Left); 352Assert.Equal(0, control.Left); 448Assert.Equal(left, control.Left);
System\Windows\Forms\ControlTests.Methods.cs (74)
7429Assert.Equal(x, control.Left); 7448Assert.Equal(x, control.Left); 7540Assert.Equal(x, control.Left); 7559Assert.Equal(x, control.Left); 7638Assert.Equal(x, control.Left); 7657Assert.Equal(x, control.Left); 7756Assert.Equal(x, control.Left); 7776Assert.Equal(x, control.Left); 7879Assert.Equal(x, control.Left); 7901Assert.Equal(x, control.Left); 8027Assert.Equal(x, control.Left); 8054Assert.Equal(x, control.Left); 8216Assert.Equal(expectedX, control.Left); 8235Assert.Equal(expectedX, control.Left); 8327Assert.Equal(expectedX, control.Left); 8346Assert.Equal(expectedX, control.Left); 8425Assert.Equal(expectedX, control.Left); 8444Assert.Equal(expectedX, control.Left); 8613Assert.Equal(expectedX, control.Left); 8633Assert.Equal(expectedX, control.Left); 8736Assert.Equal(expectedX, control.Left); 8758Assert.Equal(expectedX, control.Left); 8884Assert.Equal(expectedX, control.Left); 8911Assert.Equal(expectedX, control.Left); 9030Assert.Equal(x, control.Left); 9051Assert.Equal(x, control.Left); 9172Assert.Equal(x, control.Left); 9193Assert.Equal(x, control.Left); 9301Assert.Equal(x, control.Left); 9322Assert.Equal(x, control.Left); 9438Assert.Equal(x, control.Left); 9460Assert.Equal(x, control.Left); 9593Assert.Equal(x, control.Left); 9617Assert.Equal(x, control.Left); 9751Assert.Equal(x, control.Left); 9780Assert.Equal(x, control.Left); 9862Assert.Equal(0, control.Left); 9878Assert.Equal(0, control.Left); 9910Assert.Equal(0, control.Left); 9929Assert.Equal(0, control.Left); 10385Assert.Equal(0, control.Left); 10404Assert.Equal(0, control.Left); 10452Assert.Equal(0, control.Left); 10485Assert.Equal(0, control.Left); 10559Assert.Equal(0, control.Left); 10578Assert.Equal(0, control.Left); 10651Assert.Equal(0, control.Left); 10670Assert.Equal(0, control.Left); 10742Assert.Equal(0, control.Left); 10764Assert.Equal(0, control.Left); 10809Assert.Equal(1, control.Left); 10831Assert.Equal(1, control.Left); 10887Assert.Equal(1, control.Left); 10913Assert.Equal(1, control.Left); 10999Assert.Equal(x, control.Left); 11018Assert.Equal(x, control.Left); 11110Assert.Equal(x, control.Left); 11129Assert.Equal(x, control.Left); 11208Assert.Equal(x, control.Left); 11227Assert.Equal(x, control.Left); 11317Assert.Equal(x, control.Left); 11337Assert.Equal(x, control.Left); 11440Assert.Equal(x, control.Left); 11462Assert.Equal(x, control.Left); 11569Assert.Equal(x, control.Left); 11596Assert.Equal(x, control.Left); 11694Assert.Equal(x, control.Left); 11713Assert.Equal(x, control.Left); 11803Assert.Equal(x, control.Left); 11823Assert.Equal(x, control.Left); 11938Assert.Equal(x, control.Left); 11960Assert.Equal(x, control.Left); 12067Assert.Equal(x, control.Left); 12094Assert.Equal(x, control.Left);
System\Windows\Forms\ControlTests.Properties.cs (76)
2482Assert.Equal(x, control.Left); 2501Assert.Equal(x, control.Left); 2571Assert.Equal(x, control.Left); 2590Assert.Equal(x, control.Left); 2656Assert.Equal(x, control.Left); 2675Assert.Equal(x, control.Left); 2761Assert.Equal(x, control.Left); 2781Assert.Equal(x, control.Left); 2861Assert.Equal(x, control.Left); 2883Assert.Equal(x, control.Left); 2986Assert.Equal(x, control.Left); 3013Assert.Equal(x, control.Left); 3385Assert.Equal(0, control.Left); 3401Assert.Equal(0, control.Left); 3448Assert.Equal(0, control.Left); 3467Assert.Equal(0, control.Left); 5732Assert.Equal(0, control.Left); 5751Assert.Equal(0, control.Left); 5842Assert.Equal(0, control.Left); 5861Assert.Equal(0, control.Left); 5930Assert.Equal(0, control.Left); 5949Assert.Equal(0, control.Left); 6038Assert.Equal(0, control.Left); 6058Assert.Equal(0, control.Left); 6150Assert.Equal(0, control.Left); 6172Assert.Equal(0, control.Left); 6287Assert.Equal(0, control.Left); 6314Assert.Equal(0, control.Left); 6695Assert.Equal(value, control.Left); 6717Assert.Equal(value, control.Left); 6787Assert.Equal(value, control.Left); 6809Assert.Equal(value, control.Left); 6885Assert.Equal(value, control.Left); 6910Assert.Equal(value, control.Left); 6996Assert.Equal(value, control.Left); 7025Assert.Equal(value, control.Left); 7176Assert.Equal(value.X, control.Left); 7198Assert.Equal(value.X, control.Left); 7266Assert.Equal(value.X, control.Left); 7289Assert.Equal(value.X, control.Left); 7368Assert.Equal(value.X, control.Left); 7393Assert.Equal(value.X, control.Left); 7479Assert.Equal(value.X, control.Left); 7509Assert.Equal(value.X, control.Left); 11116Assert.Equal(0, control.Left); 11135Assert.Equal(0, control.Left); 11227Assert.Equal(0, control.Left); 11246Assert.Equal(0, control.Left); 11322Assert.Equal(0, control.Left); 11341Assert.Equal(0, control.Left); 11437Assert.Equal(0, control.Left); 11457Assert.Equal(0, control.Left); 11554Assert.Equal(0, control.Left); 11576Assert.Equal(0, control.Left); 11696Assert.Equal(0, control.Left); 11723Assert.Equal(0, control.Left); 12131Assert.Equal(0, control.Left); 12152Assert.Equal(0, control.Left); 12221Assert.Equal(0, control.Left); 12243Assert.Equal(0, control.Left); 12319Assert.Equal(0, control.Left); 12343Assert.Equal(0, control.Left); 12428Assert.Equal(0, control.Left); 12457Assert.Equal(0, control.Left); 13151Assert.Equal(0, control.Left); 13170Assert.Equal(0, control.Left); 13261Assert.Equal(0, control.Left); 13280Assert.Equal(0, control.Left); 13349Assert.Equal(0, control.Left); 13368Assert.Equal(0, control.Left); 13457Assert.Equal(0, control.Left); 13477Assert.Equal(0, control.Left); 13569Assert.Equal(0, control.Left); 13591Assert.Equal(0, control.Left); 13706Assert.Equal(0, control.Left); 13733Assert.Equal(0, control.Left);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
86Assert.Equal(0, control.Left);
System\Windows\Forms\DateTimePickerTests.cs (1)
88Assert.Equal(0, control.Left);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
113Assert.Equal(0, control.Left);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
92Assert.Equal(0, control.Left);
System\Windows\Forms\DomainUpDownTests.cs (1)
116_sub.Left.Should().Be(0);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
87Assert.Equal(0, control.Left);
System\Windows\Forms\FormTests.cs (1)
115Assert.Equal(0, control.Left);
System\Windows\Forms\GroupBoxTests.cs (1)
75Assert.Equal(0, control.Left);
System\Windows\Forms\HScrollBarTests.cs (1)
83Assert.Equal(0, control.Left);
System\Windows\Forms\LabelTests.cs (1)
80Assert.Equal(0, control.Left);
System\Windows\Forms\ListBoxTests.cs (1)
91Assert.Equal(0, control.Left);
System\Windows\Forms\ListControlTests.cs (1)
81Assert.Equal(0, control.Left);
System\Windows\Forms\ListViewTests.cs (1)
106Assert.Equal(0, control.Left);
System\Windows\Forms\MdiClientTests.cs (11)
59Assert.Equal(0, control.Left); 541Assert.Equal(0, control.Left); 560Assert.Equal(0, control.Left); 643Assert.Equal(0, control.Left); 665Assert.Equal(0, control.Left); 777Assert.Equal(0, control.Left); 804Assert.Equal(0, control.Left); 929Assert.Equal(0, control.Left); 956Assert.Equal(0, control.Left); 1091Assert.Equal(0, control.Left); 1118Assert.Equal(0, control.Left);
System\Windows\Forms\MenuStripTests.cs (1)
105Assert.Equal(0, control.Left);
System\Windows\Forms\MonthCalendarTests.cs (1)
92Assert.Equal(0, control.Left);
System\Windows\Forms\PanelTests.cs (1)
87Assert.Equal(0, control.Left);
System\Windows\Forms\PictureBoxTests.cs (1)
82Assert.Equal(0, control.Left);
System\Windows\Forms\ProgressBarTests.cs (1)
72Assert.Equal(0, control.Left);
System\Windows\Forms\PropertyGridTests.cs (1)
121Assert.Equal(0, control.Left);
System\Windows\Forms\RadioButtonTests.cs (1)
88Assert.Equal(0, control.Left);
System\Windows\Forms\RichTextBoxTests.cs (1)
93Assert.Equal(0, control.Left);
System\Windows\Forms\ScrollableControlTests.cs (1)
86Assert.Equal(0, control.Left);
System\Windows\Forms\ScrollBarTests.cs (1)
73Assert.Equal(0, control.Left);
System\Windows\Forms\SplitterPanelTests.cs (9)
77Assert.Equal(0, control.Left); 467Assert.Equal(0, control.Left); 486Assert.Equal(0, control.Left); 544Assert.Equal(value.X, control.Left); 566Assert.Equal(value.X, control.Left); 832Assert.Equal(0, control.Left); 851Assert.Equal(0, control.Left); 1189Assert.Equal(0, control.Left); 1208Assert.Equal(0, control.Left);
System\Windows\Forms\SplitterTests.cs (7)
73Assert.Equal(0, control.Left); 1256Assert.Equal(child.Right, control.Left); 1375Assert.Equal(child.Right, control.Left); 1419Assert.Equal(control.Left, e.X); 1421Assert.Equal(control.Left + control.Bounds.Width / 2, e.SplitX); 2023Assert.Equal(child.Right, control.Left); 2131Assert.Equal(child.Right, control.Left);
System\Windows\Forms\StatusStripTests.cs (1)
105Assert.Equal(0, control.Left);
System\Windows\Forms\TabControlTests.cs (1)
78Assert.Equal(0, control.Left);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
95Assert.Equal(0, control.Left);
System\Windows\Forms\TabPageTests.cs (18)
92Assert.Equal(0, control.Left); 201Assert.Equal(0, control.Left); 1902Assert.Equal(value.X, control.Left); 1924Assert.Equal(value.X, control.Left); 1992Assert.Equal(value.X, control.Left); 2015Assert.Equal(value.X, control.Left); 2093Assert.Equal(value.X, control.Left); 2118Assert.Equal(value.X, control.Left); 2217Assert.Equal(expected.X, control.Left); 2247Assert.Equal(expected.X, control.Left); 4349Assert.Equal(x, control.Left); 4370Assert.Equal(x, control.Left); 4486Assert.Equal(x, control.Left); 4508Assert.Equal(x, control.Left); 4641Assert.Equal(x, control.Left); 4665Assert.Equal(x, control.Left); 4819Assert.Equal(expected.X, control.Left); 4849Assert.Equal(expected.X, control.Left);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
89Assert.Equal(0, control.Left); 943Assert.Equal(value.X, control.Left); 965Assert.Equal(value.X, control.Left);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
112Assert.Equal(0, control.Left); 1969Assert.Equal(expected.X, control.Left); 1991Assert.Equal(expected.X, control.Left);
System\Windows\Forms\ToolStripPanelTests.cs (1)
89Assert.Equal(0, control.Left);
System\Windows\Forms\ToolStripTests.cs (2)
123Assert.Equal(0, control.Left); 278Assert.Equal(0, control.Left);
System\Windows\Forms\TreeViewTests.cs (1)
85Assert.Equal(0, control.Left);
System\Windows\Forms\UpDownBaseTests.cs (3)
101Assert.Equal(0, control.Left); 2767Assert.Equal(x, control.Left); 2799Assert.Equal(x, control.Left);
System\Windows\Forms\UserControlTests.cs (1)
93Assert.Equal(0, control.Left);
System\Windows\Forms\VScrollBarTests.cs (1)
82Assert.Equal(0, control.Left);
System\Windows\Forms\WebBrowserTests.cs (1)
70Assert.Equal(0, control.Left);
TextBoxBaseTests.cs (6)
6540Assert.Equal(x, control.Left); 6561Assert.Equal(x, control.Left); 6674Assert.Equal(x, control.Left); 6695Assert.Equal(x, control.Left); 6790Assert.Equal(x, control.Left); 6811Assert.Equal(x, control.Left);
TextBoxTests.cs (1)
80Assert.Equal(0, control.Left);
TrackBarTests.cs (3)
75Assert.Equal(0, control.Left); 3000Assert.Equal(x, control.Left); 3021Assert.Equal(x, control.Left);
WebBrowserBaseTests.cs (4)
79Assert.Equal(x, control.Left); 98Assert.Equal(x, control.Left); 195Assert.Equal(x, control.Left); 217Assert.Equal(x, control.Left);
System.Windows.Forms.UI.IntegrationTests (4)
FormTests.cs (4)
67Assert.True(form.Left <= screenWorkingArea.X); 68Assert.True(form.Left >= screenWorkingArea.X - borderSize); 128Assert.True(form.Left <= screenMiddleX); 129Assert.True(form.Left >= screenMiddleX - borderSize);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
200g.DrawImage(parentBitmap, -childElementHost.Left, -childElementHost.Top);
WinFormsControlsTest (1)
TrackBars.cs (1)
43trackBar1.Width = ClientRectangle.Width - trackBar1.Left * 2;