6 writes to Width
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
1316
cp.
Width
= _width;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
97
Width
= 0,
System\Windows\Forms\Form.cs (2)
3621
cp.
Width
= correct.Width;
3628
cp.
Width
= PInvoke.CW_USEDEFAULT;
System.Windows.Forms.Tests (2)
System\Windows\Forms\CreateParamsTests.cs (2)
92
Width
= value
141
Width
= 14,
121 references to Width
System.Windows.Forms (4)
System\Windows\Forms\CreateParams.cs (1)
72
return $"CreateParams {{'{ClassName}', '{Caption}', 0x{Style:x}, 0x{ExStyle:x}, {{{X}, {Y}, {
Width
}, {Height}}}}}";
System\Windows\Forms\Form.cs (2)
3652
cp.X = Math.Max(clientRect.X, clientRect.X + (clientRect.Width - cp.
Width
) / 2);
3677
cp.X = Math.Max(screenRect.X, screenRect.X + (screenRect.Width - cp.
Width
) / 2);
System\Windows\Forms\NativeWindow.cs (1)
446
cp.
Width
,
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
145
Assert.Equal(control.Width, createParams.
Width
);
System.Windows.Forms.Tests (115)
System\Windows\Forms\AxHostTests.cs (2)
241
Assert.Equal(75, createParams.
Width
);
281
Assert.Equal(75, createParams.
Width
);
System\Windows\Forms\ButtonBaseTests.cs (3)
138
Assert.Equal(75, createParams.
Width
);
171
Assert.Equal(75, createParams.
Width
);
241
Assert.Equal(75, createParams.
Width
);
System\Windows\Forms\ButtonTests.cs (4)
136
Assert.Equal(75, createParams.
Width
);
160
Assert.Equal(75, createParams.
Width
);
193
Assert.Equal(75, createParams.
Width
);
263
Assert.Equal(75, createParams.
Width
);
System\Windows\Forms\CheckBoxTests.cs (1)
139
Assert.Equal(104, createParams.
Width
);
System\Windows\Forms\ComboBoxTests.cs (1)
148
Assert.Equal(121, createParams.
Width
);
System\Windows\Forms\ContainerControlTests.cs (1)
139
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\ControlTests.cs (9)
511
Assert.Equal(0, createParams.
Width
);
535
Assert.Equal(0, createParams.
Width
);
561
Assert.Equal(0, createParams.
Width
);
586
Assert.Equal(0, createParams.
Width
);
612
Assert.Equal(0, createParams.
Width
);
634
Assert.True(createParams.
Width
> 0);
661
Assert.Equal(0, createParams.
Width
);
687
Assert.Equal(0, createParams.
Width
);
713
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\CreateParamsTests.cs (1)
94
Assert.Equal(value, createParams.
Width
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
146
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\DateTimePickerTests.cs (1)
139
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
182
Assert.Equal(control.Width, createParams.
Width
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
142
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\DomainUpDownTests.cs (1)
179
createParams.
Width
.Should().Be(120);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
134
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\FormTests.cs (1)
183
Assert.Equal(300, createParams.
Width
);
System\Windows\Forms\GroupBoxTests.cs (2)
119
Assert.Equal(200, createParams.
Width
);
147
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\HScrollBarTests.cs (1)
133
Assert.True(createParams.
Width
> 0);
System\Windows\Forms\LabelTests.cs (1)
130
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\ListBoxTests.cs (8)
151
Assert.Equal(120, createParams.
Width
);
177
Assert.Equal(120, createParams.
Width
);
203
Assert.Equal(120, createParams.
Width
);
229
Assert.Equal(120, createParams.
Width
);
256
Assert.Equal(120, createParams.
Width
);
285
Assert.Equal(120, createParams.
Width
);
313
Assert.Equal(120, createParams.
Width
);
340
Assert.Equal(120, createParams.
Width
);
System\Windows\Forms\ListControlTests.cs (1)
127
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\ListViewTests.cs (1)
169
Assert.Equal(121, createParams.
Width
);
System\Windows\Forms\MonthCalendarTests.cs (1)
158
Assert.Equal(control.Width, createParams.
Width
);
System\Windows\Forms\PanelTests.cs (2)
132
Assert.Equal(200, createParams.
Width
);
158
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\PictureBoxTests.cs (1)
133
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\ProgressBarTests.cs (3)
119
Assert.Equal(100, createParams.
Width
);
158
Assert.Equal(100, createParams.
Width
);
187
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\PropertyGridTests.cs (1)
187
Assert.Equal(130, createParams.
Width
);
System\Windows\Forms\RadioButtonTests.cs (2)
136
Assert.Equal(104, createParams.
Width
);
160
Assert.Equal(104, createParams.
Width
);
System\Windows\Forms\RichTextBoxTests.cs (3)
153
Assert.Equal(100, createParams.
Width
);
179
Assert.Equal(100, createParams.
Width
);
233
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\ScrollableControlTests.cs (3)
132
Assert.Equal(0, createParams.
Width
);
159
Assert.Equal(0, createParams.
Width
);
186
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\ScrollBarTests.cs (1)
121
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\SplitterTests.cs (2)
119
Assert.Equal(3, createParams.
Width
);
146
Assert.Equal(3, createParams.
Width
);
System\Windows\Forms\StatusStripTests.cs (1)
168
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\TabControlTests.cs (9)
130
Assert.Equal(200, createParams.
Width
);
155
Assert.Equal(200, createParams.
Width
);
179
Assert.Equal(200, createParams.
Width
);
216
Assert.Equal(200, createParams.
Width
);
242
Assert.Equal(200, createParams.
Width
);
266
Assert.Equal(200, createParams.
Width
);
301
Assert.Equal(200, createParams.
Width
);
326
Assert.Equal(200, createParams.
Width
);
355
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
143
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\TabPageTests.cs (1)
248
Assert.Equal(200, createParams.
Width
);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
175
Assert.Equal(100, createParams.
Width
);
206
Assert.Equal(100, createParams.
Width
);
240
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
136
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\ToolStripTests.cs (1)
348
Assert.Equal(100, createParams.
Width
);
System\Windows\Forms\ToolTipTests.cs (1)
92
Assert.Equal(0, createParams.
Width
);
System\Windows\Forms\TreeViewTests.cs (19)
146
Assert.Equal(121, createParams.
Width
);
174
Assert.Equal(121, createParams.
Width
);
204
Assert.Equal(121, createParams.
Width
);
230
Assert.Equal(121, createParams.
Width
);
256
Assert.Equal(121, createParams.
Width
);
282
Assert.Equal(121, createParams.
Width
);
308
Assert.Equal(121, createParams.
Width
);
334
Assert.Equal(121, createParams.
Width
);
360
Assert.Equal(121, createParams.
Width
);
386
Assert.Equal(121, createParams.
Width
);
412
Assert.Equal(121, createParams.
Width
);
438
Assert.Equal(121, createParams.
Width
);
471
Assert.Equal(121, createParams.
Width
);
504
Assert.Equal(121, createParams.
Width
);
550
Assert.Equal(121, createParams.
Width
);
596
Assert.Equal(121, createParams.
Width
);
624
Assert.Equal(121, createParams.
Width
);
657
Assert.Equal(121, createParams.
Width
);
690
Assert.Equal(121, createParams.
Width
);
System\Windows\Forms\UpDownBaseTests.cs (2)
162
Assert.Equal(120, createParams.
Width
);
193
Assert.Equal(120, createParams.
Width
);
System\Windows\Forms\UserControlTests.cs (2)
139
Assert.Equal(150, createParams.
Width
);
165
Assert.Equal(150, createParams.
Width
);
System\Windows\Forms\VScrollBarTests.cs (1)
132
Assert.True(createParams.
Width
> 0);
System\Windows\Forms\WebBrowserTests.cs (1)
115
Assert.Equal(250, createParams.
Width
);
TextBoxBaseTests.cs (5)
31
Assert.Equal(100, createParams.
Width
);
57
Assert.Equal(100, createParams.
Width
);
83
Assert.Equal(100, createParams.
Width
);
109
Assert.Equal(100, createParams.
Width
);
138
Assert.Equal(100, createParams.
Width
);
TextBoxTests.cs (1)
139
Assert.Equal(100, createParams.
Width
);
TrackBarTests.cs (4)
126
Assert.Equal(104, createParams.
Width
);
154
Assert.Equal(104, createParams.
Width
);
180
Assert.Equal(104, createParams.
Width
);
211
Assert.Equal(104, createParams.
Width
);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
576
HwndSourceParameters HWSParam = new HwndSourceParameters(this.Text, cp.
Width
, cp.Height);