51 writes to Width
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (2)
48
Width
= width;
446
columnHeader.
Width
= _width;
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (10)
178
Width
= width,
207
Width
= width
228
Width
= width
239
Width
= width,
251
Width
= width,
421
Width
= width,
443
Width
= width
464
Width
= width
475
Width
= width,
487
Width
= width,
System\Windows\Forms\Controls\ListView\ListView.cs (3)
6158
_columnHeaders[nmheader->iItem].
Width
= _newWidthForColumnWidthChangingCancelled;
6280
_columnHeaders[nmheader->iItem].
Width
= _newWidthForColumnWidthChangingCancelled;
6300
col.
Width
+= compensateForColumnResize;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
73
_maskDescriptionHeader.
Width
= _listViewCannedMasks.Width / 3;
78
_dataFormatHeader.
Width
= _listViewCannedMasks.Width / 3;
83
_validatingTypeHeader.
Width
= (_listViewCannedMasks.Width / 3) - SystemInformation.VerticalScrollBarWidth - 4; // so no h-scrollbar.
System.Windows.Forms.Tests (30)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (10)
1151
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1152
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1174
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1175
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1193
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1194
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1195
listView.Columns.Add(new ColumnHeader("Column 3") {
Width
= 70 });
1219
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1220
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1221
listView.Columns.Add(new ColumnHeader("Column 3") {
Width
= 70 });
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
163
listView.Columns.Add(new ColumnHeader() { Text = "Column 1",
Width
= 100 });
System\Windows\Forms\ColumnHeaderTests.cs (11)
1290
Width
= value
1295
header.
Width
= value;
1307
header.
Width
= value;
1312
header.
Width
= value;
1332
header.
Width
= value;
1340
header.
Width
= value;
1363
header.
Width
= value;
1381
header.
Width
= value;
1472
Width
= 10
1509
Width
= 10
1547
Width
= 10
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
148
listView.Columns.Add(new ColumnHeader() {
Width
= 50 });
168
listView.Columns.Add(new ColumnHeader() {
Width
= columnWidth });
System\Windows\Forms\ListViewTests.cs (6)
5149
listView.Columns.Add(new ColumnHeader() { Text = "Column 1",
Width
= 100 });
5150
listView.Columns.Add(new ColumnHeader() { Text = "Column 2",
Width
= 100 });
5151
listView.Columns.Add(new ColumnHeader() { Text = "Column 3",
Width
= 100 });
5226
listView.Columns.Add(new ColumnHeader() { Text = "Column 1",
Width
= 100 });
5227
listView.Columns.Add(new ColumnHeader() { Text = "Column 2",
Width
= 100 });
5228
listView.Columns.Add(new ColumnHeader() { Text = "Column 3",
Width
= 100 });
System.Windows.Forms.UI.IntegrationTests (3)
ListViewTests.cs (3)
517
ColumnHeader columnHeader1 = new() { Text = "ColumnHeader1",
Width
= 140 };
518
ColumnHeader columnHeader2 = new() { Text = "ColumnHeader2",
Width
= 140 };
519
ColumnHeader columnHeader3 = new() { Text = "ColumnHeader3",
Width
= 140 };
41 references to Width
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
43
int width =
Width
;
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (3)
316
_ = _owner._columnHeaders[colIdx].
Width
; // Update width before detaching from ListView
331
_ = _owner._columnHeaders[colIdx].
Width
; // Update width before detaching from ListView
502
_ = columnHeader.
Width
; // Update width before detaching from ListView
System\Windows\Forms\Controls\ListView\ListView.cs (5)
2722
subItemBounds.Width = _columnHeaders[0].
Width
;
3917
lvColumn.cx = ch.
Width
;
5303
int newWidth = columnHeader.
Width
+ compensate;
6050
_columnHeaderClickedWidth = _columnHeaderClicked.
Width
;
6100
int w = _columnHeaders[nmheader->iItem].
Width
;
System.Windows.Forms.Tests (32)
System\Windows\Forms\ColumnHeaderCollectionTests.cs (10)
193
Assert.Equal(width, header.
Width
);
215
Assert.Equal(width, header.
Width
);
261
Assert.Equal(width, header.
Width
);
284
Assert.Equal(width, header.
Width
);
309
Assert.Equal(width, header.
Width
);
737
Assert.Equal(width, header.
Width
);
750
Assert.Equal(width, header.
Width
);
778
Assert.Equal(width, header.
Width
);
792
Assert.Equal(width, header.
Width
);
808
Assert.Equal(width, header.
Width
);
System\Windows\Forms\ColumnHeaderTests.cs (22)
34
Assert.Equal(60, header.
Width
);
60
Assert.Equal(60, header.
Width
);
84
Assert.Equal(60, header.
Width
);
1225
Assert.Equal(60, header.
Width
);
1242
Assert.Equal(60, header.
Width
);
1266
Assert.Equal(header.
Width
, header.
Width
);
1292
Assert.Equal(value, header.
Width
);
1296
Assert.Equal(value, header.
Width
);
1308
Assert.Equal(value, header.
Width
);
1313
Assert.Equal(value, header.
Width
);
1333
Assert.Equal(value, header.
Width
);
1341
Assert.Equal(value, header.
Width
);
1391
Assert.Equal(60, header.
Width
);
1395
Assert.Equal(60, header.
Width
);
1407
Assert.Equal(60, header.
Width
);
1412
Assert.Equal(60, header.
Width
);
1432
Assert.Equal(60, header.
Width
);
1440
Assert.Equal(60, header.
Width
);
1488
Assert.Equal(10, header.
Width
);
1527
Assert.Equal(10, header.
Width
);
1567
Assert.Equal(10, header.
Width
);