28 writes to Left
System.Windows.Forms (7)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
184
control.
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)
315
Left
-= (Width - oldWidth);
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
69
Left
= _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)
460
controls[i].
Left
= adjustedLoc.X;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ControlTests.Properties.cs (15)
6690
control.
Left
= value;
6712
control.
Left
= value;
6782
control.
Left
= value;
6804
control.
Left
= value;
6880
control.
Left
= value;
6905
control.
Left
= value;
6991
control.
Left
= value;
7020
control.
Left
= value;
7069
control.
Left
= 1;
7074
control.
Left
= 1;
7079
control.
Left
= 2;
7106
control.
Left
= 1;
7112
control.
Left
= 1;
7118
control.
Left
= 2;
7126
control.
Left
= 1;
WinFormsControlsTest (3)
RichTextBoxes.cs (3)
128
Label textLabel = new() {
Left
= 50, Top = 20, Text = text };
129
TextBox textBox = new() {
Left
= 50, Top = 50, Width = 400 };
130
Button 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)
179
get => Pixel2Twip(GetControl()?.
Left
?? 0, xDirection: true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
2006
rect.left = _control.
Left
;
System\Windows\Forms\Control.cs (5)
8186
Rectangle shift = new(-
Left
, -Top, parent.Width, parent.Height);
8190
rectangle.Left +
Left
,
8198
PInvokeCore.OffsetViewportOrgEx(hdc, -
Left
, -Top, lppt: null);
10013
/// <param name="x">The new <see cref="
Left
" /> property value of the control.</param>
11866
if ((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)
420
OnSplitterMoved(new SplitterEventArgs(
Left
, Top, (
Left
+ bounds.Width / 2), (Top + bounds.Height / 2)));
746
if (target.Right ==
Left
)
753
if (target.
Left
== Right)
824
int x = e.X +
Left
;
958
int size = GetSplitSize(splitTarget, x -
Left
+ _anchor.X, y - Top + _anchor.Y);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
748
private bool ShouldSerializeLocation() =>
Left
!= 0 || Top != 0;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1940
Left
,
1953
Left
,
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (1)
216
x = _control.
Left
- size.Width - _iconPadding;
System\Windows\Forms\Form.cs (3)
4212
form.SetBounds(new Rectangle(
Left
, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None);
4355
Point pointToSnap = new(button.
Left
+ button.Width / 2, button.Top + button.Height / 2);
5875
return
Left
!= 0 || Top != 0;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
767
r.X = _splitterRect.X -
Left
;
991
SplitterCancelEventArgs se = new(
Left
+ SplitterRectangle.X + SplitterRectangle.Width / 2, Top + SplitterRectangle.Y + SplitterRectangle.Height / 2, xSplit, ySplit);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
464
private Rectangle ResizeBoxRectangle => new(_vScrollBar.
Left
, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height);
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
272
Point pt = new(c.
Left
, c.Top);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
945
if (propLeft is not null && _resizeComponents[i].resizeControl.
Left
!= _resizeComponents[i].resizeBounds.X)
947
propLeft.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.
Left
);
System\Windows\Forms\Design\FormatStringDialog.cs (1)
103
result += control.
Left
;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
420
if (newChild.
Left
== 0 && newChild.Top == 0 && newChild.Width >= Control.Width && newChild.Height >= Control.Height)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
110
Point pt = new(c.
Left
, c.Top);
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (1)
95
Assert.Equal(0, control.
Left
);
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
94
result += control.
Left
;
System.Windows.Forms.Tests (263)
System\Windows\Forms\AxHostTests.cs (2)
87
Assert.Equal(0, control.
Left
);
181
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ButtonBaseTests.cs (1)
85
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ButtonTests.cs (1)
88
Assert.Equal(0, control.
Left
);
System\Windows\Forms\CheckBoxTests.cs (1)
89
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ComboBoxTests.cs (1)
97
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ContainerControlTests.cs (1)
93
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ControlTests.cs (5)
71
Assert.Equal(0, control.
Left
);
160
Assert.Equal(0, control.
Left
);
256
Assert.Equal(left, control.
Left
);
352
Assert.Equal(0, control.
Left
);
448
Assert.Equal(left, control.
Left
);
System\Windows\Forms\ControlTests.Methods.cs (74)
7420
Assert.Equal(x, control.
Left
);
7439
Assert.Equal(x, control.
Left
);
7531
Assert.Equal(x, control.
Left
);
7550
Assert.Equal(x, control.
Left
);
7629
Assert.Equal(x, control.
Left
);
7648
Assert.Equal(x, control.
Left
);
7747
Assert.Equal(x, control.
Left
);
7767
Assert.Equal(x, control.
Left
);
7870
Assert.Equal(x, control.
Left
);
7892
Assert.Equal(x, control.
Left
);
8018
Assert.Equal(x, control.
Left
);
8045
Assert.Equal(x, control.
Left
);
8207
Assert.Equal(expectedX, control.
Left
);
8226
Assert.Equal(expectedX, control.
Left
);
8318
Assert.Equal(expectedX, control.
Left
);
8337
Assert.Equal(expectedX, control.
Left
);
8416
Assert.Equal(expectedX, control.
Left
);
8435
Assert.Equal(expectedX, control.
Left
);
8604
Assert.Equal(expectedX, control.
Left
);
8624
Assert.Equal(expectedX, control.
Left
);
8727
Assert.Equal(expectedX, control.
Left
);
8749
Assert.Equal(expectedX, control.
Left
);
8875
Assert.Equal(expectedX, control.
Left
);
8902
Assert.Equal(expectedX, control.
Left
);
9021
Assert.Equal(x, control.
Left
);
9042
Assert.Equal(x, control.
Left
);
9163
Assert.Equal(x, control.
Left
);
9184
Assert.Equal(x, control.
Left
);
9292
Assert.Equal(x, control.
Left
);
9313
Assert.Equal(x, control.
Left
);
9429
Assert.Equal(x, control.
Left
);
9451
Assert.Equal(x, control.
Left
);
9584
Assert.Equal(x, control.
Left
);
9608
Assert.Equal(x, control.
Left
);
9742
Assert.Equal(x, control.
Left
);
9771
Assert.Equal(x, control.
Left
);
9853
Assert.Equal(0, control.
Left
);
9869
Assert.Equal(0, control.
Left
);
9901
Assert.Equal(0, control.
Left
);
9920
Assert.Equal(0, control.
Left
);
10376
Assert.Equal(0, control.
Left
);
10395
Assert.Equal(0, control.
Left
);
10443
Assert.Equal(0, control.
Left
);
10476
Assert.Equal(0, control.
Left
);
10550
Assert.Equal(0, control.
Left
);
10569
Assert.Equal(0, control.
Left
);
10642
Assert.Equal(0, control.
Left
);
10661
Assert.Equal(0, control.
Left
);
10733
Assert.Equal(0, control.
Left
);
10755
Assert.Equal(0, control.
Left
);
10800
Assert.Equal(1, control.
Left
);
10822
Assert.Equal(1, control.
Left
);
10878
Assert.Equal(1, control.
Left
);
10904
Assert.Equal(1, control.
Left
);
10990
Assert.Equal(x, control.
Left
);
11009
Assert.Equal(x, control.
Left
);
11101
Assert.Equal(x, control.
Left
);
11120
Assert.Equal(x, control.
Left
);
11199
Assert.Equal(x, control.
Left
);
11218
Assert.Equal(x, control.
Left
);
11308
Assert.Equal(x, control.
Left
);
11328
Assert.Equal(x, control.
Left
);
11431
Assert.Equal(x, control.
Left
);
11453
Assert.Equal(x, control.
Left
);
11560
Assert.Equal(x, control.
Left
);
11587
Assert.Equal(x, control.
Left
);
11685
Assert.Equal(x, control.
Left
);
11704
Assert.Equal(x, control.
Left
);
11794
Assert.Equal(x, control.
Left
);
11814
Assert.Equal(x, control.
Left
);
11929
Assert.Equal(x, control.
Left
);
11951
Assert.Equal(x, control.
Left
);
12058
Assert.Equal(x, control.
Left
);
12085
Assert.Equal(x, control.
Left
);
System\Windows\Forms\ControlTests.Properties.cs (76)
2482
Assert.Equal(x, control.
Left
);
2501
Assert.Equal(x, control.
Left
);
2571
Assert.Equal(x, control.
Left
);
2590
Assert.Equal(x, control.
Left
);
2656
Assert.Equal(x, control.
Left
);
2675
Assert.Equal(x, control.
Left
);
2761
Assert.Equal(x, control.
Left
);
2781
Assert.Equal(x, control.
Left
);
2861
Assert.Equal(x, control.
Left
);
2883
Assert.Equal(x, control.
Left
);
2986
Assert.Equal(x, control.
Left
);
3013
Assert.Equal(x, control.
Left
);
3385
Assert.Equal(0, control.
Left
);
3401
Assert.Equal(0, control.
Left
);
3448
Assert.Equal(0, control.
Left
);
3467
Assert.Equal(0, control.
Left
);
5732
Assert.Equal(0, control.
Left
);
5751
Assert.Equal(0, control.
Left
);
5842
Assert.Equal(0, control.
Left
);
5861
Assert.Equal(0, control.
Left
);
5930
Assert.Equal(0, control.
Left
);
5949
Assert.Equal(0, control.
Left
);
6038
Assert.Equal(0, control.
Left
);
6058
Assert.Equal(0, control.
Left
);
6150
Assert.Equal(0, control.
Left
);
6172
Assert.Equal(0, control.
Left
);
6287
Assert.Equal(0, control.
Left
);
6314
Assert.Equal(0, control.
Left
);
6695
Assert.Equal(value, control.
Left
);
6717
Assert.Equal(value, control.
Left
);
6787
Assert.Equal(value, control.
Left
);
6809
Assert.Equal(value, control.
Left
);
6885
Assert.Equal(value, control.
Left
);
6910
Assert.Equal(value, control.
Left
);
6996
Assert.Equal(value, control.
Left
);
7025
Assert.Equal(value, control.
Left
);
7176
Assert.Equal(value.X, control.
Left
);
7198
Assert.Equal(value.X, control.
Left
);
7266
Assert.Equal(value.X, control.
Left
);
7289
Assert.Equal(value.X, control.
Left
);
7368
Assert.Equal(value.X, control.
Left
);
7393
Assert.Equal(value.X, control.
Left
);
7479
Assert.Equal(value.X, control.
Left
);
7509
Assert.Equal(value.X, control.
Left
);
11116
Assert.Equal(0, control.
Left
);
11135
Assert.Equal(0, control.
Left
);
11227
Assert.Equal(0, control.
Left
);
11246
Assert.Equal(0, control.
Left
);
11322
Assert.Equal(0, control.
Left
);
11341
Assert.Equal(0, control.
Left
);
11437
Assert.Equal(0, control.
Left
);
11457
Assert.Equal(0, control.
Left
);
11554
Assert.Equal(0, control.
Left
);
11576
Assert.Equal(0, control.
Left
);
11696
Assert.Equal(0, control.
Left
);
11723
Assert.Equal(0, control.
Left
);
12131
Assert.Equal(0, control.
Left
);
12152
Assert.Equal(0, control.
Left
);
12221
Assert.Equal(0, control.
Left
);
12243
Assert.Equal(0, control.
Left
);
12319
Assert.Equal(0, control.
Left
);
12343
Assert.Equal(0, control.
Left
);
12428
Assert.Equal(0, control.
Left
);
12457
Assert.Equal(0, control.
Left
);
13151
Assert.Equal(0, control.
Left
);
13170
Assert.Equal(0, control.
Left
);
13261
Assert.Equal(0, control.
Left
);
13280
Assert.Equal(0, control.
Left
);
13349
Assert.Equal(0, control.
Left
);
13368
Assert.Equal(0, control.
Left
);
13457
Assert.Equal(0, control.
Left
);
13477
Assert.Equal(0, control.
Left
);
13569
Assert.Equal(0, control.
Left
);
13591
Assert.Equal(0, control.
Left
);
13706
Assert.Equal(0, control.
Left
);
13733
Assert.Equal(0, control.
Left
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
86
Assert.Equal(0, control.
Left
);
System\Windows\Forms\DateTimePickerTests.cs (1)
88
Assert.Equal(0, control.
Left
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
113
Assert.Equal(0, control.
Left
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
92
Assert.Equal(0, control.
Left
);
System\Windows\Forms\DomainUpDownTests.cs (1)
116
_sub.
Left
.Should().Be(0);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
87
Assert.Equal(0, control.
Left
);
System\Windows\Forms\FormTests.cs (1)
115
Assert.Equal(0, control.
Left
);
System\Windows\Forms\GroupBoxTests.cs (1)
75
Assert.Equal(0, control.
Left
);
System\Windows\Forms\HScrollBarTests.cs (1)
83
Assert.Equal(0, control.
Left
);
System\Windows\Forms\LabelTests.cs (1)
80
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ListBoxTests.cs (1)
91
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ListControlTests.cs (1)
81
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ListViewTests.cs (1)
106
Assert.Equal(0, control.
Left
);
System\Windows\Forms\MdiClientTests.cs (11)
59
Assert.Equal(0, control.
Left
);
541
Assert.Equal(0, control.
Left
);
560
Assert.Equal(0, control.
Left
);
643
Assert.Equal(0, control.
Left
);
665
Assert.Equal(0, control.
Left
);
777
Assert.Equal(0, control.
Left
);
804
Assert.Equal(0, control.
Left
);
929
Assert.Equal(0, control.
Left
);
956
Assert.Equal(0, control.
Left
);
1091
Assert.Equal(0, control.
Left
);
1118
Assert.Equal(0, control.
Left
);
System\Windows\Forms\MenuStripTests.cs (1)
105
Assert.Equal(0, control.
Left
);
System\Windows\Forms\MonthCalendarTests.cs (1)
92
Assert.Equal(0, control.
Left
);
System\Windows\Forms\PanelTests.cs (1)
87
Assert.Equal(0, control.
Left
);
System\Windows\Forms\PictureBoxTests.cs (1)
82
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ProgressBarTests.cs (1)
72
Assert.Equal(0, control.
Left
);
System\Windows\Forms\PropertyGridTests.cs (1)
121
Assert.Equal(0, control.
Left
);
System\Windows\Forms\RadioButtonTests.cs (1)
88
Assert.Equal(0, control.
Left
);
System\Windows\Forms\RichTextBoxTests.cs (1)
93
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ScrollableControlTests.cs (1)
86
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ScrollBarTests.cs (1)
73
Assert.Equal(0, control.
Left
);
System\Windows\Forms\SplitterPanelTests.cs (9)
77
Assert.Equal(0, control.
Left
);
467
Assert.Equal(0, control.
Left
);
486
Assert.Equal(0, control.
Left
);
544
Assert.Equal(value.X, control.
Left
);
566
Assert.Equal(value.X, control.
Left
);
832
Assert.Equal(0, control.
Left
);
851
Assert.Equal(0, control.
Left
);
1189
Assert.Equal(0, control.
Left
);
1208
Assert.Equal(0, control.
Left
);
System\Windows\Forms\SplitterTests.cs (7)
73
Assert.Equal(0, control.
Left
);
1256
Assert.Equal(child.Right, control.
Left
);
1375
Assert.Equal(child.Right, control.
Left
);
1419
Assert.Equal(control.
Left
, e.X);
1421
Assert.Equal(control.
Left
+ control.Bounds.Width / 2, e.SplitX);
2023
Assert.Equal(child.Right, control.
Left
);
2131
Assert.Equal(child.Right, control.
Left
);
System\Windows\Forms\StatusStripTests.cs (1)
105
Assert.Equal(0, control.
Left
);
System\Windows\Forms\TabControlTests.cs (1)
78
Assert.Equal(0, control.
Left
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
95
Assert.Equal(0, control.
Left
);
System\Windows\Forms\TabPageTests.cs (18)
92
Assert.Equal(0, control.
Left
);
201
Assert.Equal(0, control.
Left
);
1902
Assert.Equal(value.X, control.
Left
);
1924
Assert.Equal(value.X, control.
Left
);
1992
Assert.Equal(value.X, control.
Left
);
2015
Assert.Equal(value.X, control.
Left
);
2093
Assert.Equal(value.X, control.
Left
);
2118
Assert.Equal(value.X, control.
Left
);
2217
Assert.Equal(expected.X, control.
Left
);
2247
Assert.Equal(expected.X, control.
Left
);
4349
Assert.Equal(x, control.
Left
);
4370
Assert.Equal(x, control.
Left
);
4486
Assert.Equal(x, control.
Left
);
4508
Assert.Equal(x, control.
Left
);
4641
Assert.Equal(x, control.
Left
);
4665
Assert.Equal(x, control.
Left
);
4819
Assert.Equal(expected.X, control.
Left
);
4849
Assert.Equal(expected.X, control.
Left
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
89
Assert.Equal(0, control.
Left
);
943
Assert.Equal(value.X, control.
Left
);
965
Assert.Equal(value.X, control.
Left
);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
112
Assert.Equal(0, control.
Left
);
1969
Assert.Equal(expected.X, control.
Left
);
1991
Assert.Equal(expected.X, control.
Left
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
89
Assert.Equal(0, control.
Left
);
System\Windows\Forms\ToolStripTests.cs (2)
123
Assert.Equal(0, control.
Left
);
278
Assert.Equal(0, control.
Left
);
System\Windows\Forms\TreeViewTests.cs (1)
85
Assert.Equal(0, control.
Left
);
System\Windows\Forms\UpDownBaseTests.cs (3)
101
Assert.Equal(0, control.
Left
);
2767
Assert.Equal(x, control.
Left
);
2799
Assert.Equal(x, control.
Left
);
System\Windows\Forms\UserControlTests.cs (1)
93
Assert.Equal(0, control.
Left
);
System\Windows\Forms\VScrollBarTests.cs (1)
82
Assert.Equal(0, control.
Left
);
System\Windows\Forms\WebBrowserTests.cs (1)
70
Assert.Equal(0, control.
Left
);
TextBoxBaseTests.cs (6)
6540
Assert.Equal(x, control.
Left
);
6561
Assert.Equal(x, control.
Left
);
6674
Assert.Equal(x, control.
Left
);
6695
Assert.Equal(x, control.
Left
);
6790
Assert.Equal(x, control.
Left
);
6811
Assert.Equal(x, control.
Left
);
TextBoxTests.cs (1)
80
Assert.Equal(0, control.
Left
);
TrackBarTests.cs (3)
75
Assert.Equal(0, control.
Left
);
3000
Assert.Equal(x, control.
Left
);
3021
Assert.Equal(x, control.
Left
);
WebBrowserBaseTests.cs (4)
79
Assert.Equal(x, control.
Left
);
98
Assert.Equal(x, control.
Left
);
195
Assert.Equal(x, control.
Left
);
217
Assert.Equal(x, control.
Left
);
System.Windows.Forms.UI.IntegrationTests (4)
FormTests.cs (4)
67
Assert.True(form.
Left
<= screenWorkingArea.X);
68
Assert.True(form.
Left
>= screenWorkingArea.X - borderSize);
128
Assert.True(form.
Left
<= screenMiddleX);
129
Assert.True(form.
Left
>= screenMiddleX - borderSize);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
204
g.DrawImage(parentBitmap, -childElementHost.
Left
, -childElementHost.Top);
WinFormsControlsTest (1)
TrackBars.cs (1)
43
trackBar1.Width = ClientRectangle.Width - trackBar1.
Left
* 2;