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)
6154
_columnHeaders[nmheader->iItem].
Width
= _newWidthForColumnWidthChangingCancelled;
6276
_columnHeaders[nmheader->iItem].
Width
= _newWidthForColumnWidthChangingCancelled;
6296
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)
1149
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1150
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1172
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1173
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1191
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1192
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1193
listView.Columns.Add(new ColumnHeader("Column 3") {
Width
= 70 });
1217
listView.Columns.Add(new ColumnHeader("Column 1") {
Width
= 70 });
1218
listView.Columns.Add(new ColumnHeader("Column 2") {
Width
= 70 });
1219
listView.Columns.Add(new ColumnHeader("Column 3") {
Width
= 70 });
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
161
listView.Columns.Add(new ColumnHeader() { Text = "Column 1",
Width
= 100 });
System\Windows\Forms\ColumnHeaderTests.cs (11)
1288
Width
= value
1293
header.
Width
= value;
1305
header.
Width
= value;
1310
header.
Width
= value;
1330
header.
Width
= value;
1338
header.
Width
= value;
1361
header.
Width
= value;
1379
header.
Width
= value;
1470
Width
= 10
1507
Width
= 10
1545
Width
= 10
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
146
listView.Columns.Add(new ColumnHeader() {
Width
= 50 });
166
listView.Columns.Add(new ColumnHeader() {
Width
= columnWidth });
System\Windows\Forms\ListViewTests.cs (6)
5147
listView.Columns.Add(new ColumnHeader() { Text = "Column 1",
Width
= 100 });
5148
listView.Columns.Add(new ColumnHeader() { Text = "Column 2",
Width
= 100 });
5149
listView.Columns.Add(new ColumnHeader() { Text = "Column 3",
Width
= 100 });
5224
listView.Columns.Add(new ColumnHeader() { Text = "Column 1",
Width
= 100 });
5225
listView.Columns.Add(new ColumnHeader() { Text = "Column 2",
Width
= 100 });
5226
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
int w = _owner._columnHeaders[colIdx].
Width
; // Update width before detaching from ListView
331
int w = _owner._columnHeaders[colIdx].
Width
; // Update width before detaching from ListView
502
int w = columnHeader.
Width
; // Update width before detaching from ListView
System\Windows\Forms\Controls\ListView\ListView.cs (5)
2718
subItemBounds.Width = _columnHeaders[0].
Width
;
3913
lvColumn.cx = ch.
Width
;
5299
int newWidth = columnHeader.
Width
+ compensate;
6046
_columnHeaderClickedWidth = _columnHeaderClicked.
Width
;
6096
int w = _columnHeaders[nmheader->iItem].
Width
;
System.Windows.Forms.Tests (32)
System\Windows\Forms\ColumnHeaderCollectionTests.cs (10)
191
Assert.Equal(width, header.
Width
);
213
Assert.Equal(width, header.
Width
);
259
Assert.Equal(width, header.
Width
);
282
Assert.Equal(width, header.
Width
);
307
Assert.Equal(width, header.
Width
);
735
Assert.Equal(width, header.
Width
);
748
Assert.Equal(width, header.
Width
);
776
Assert.Equal(width, header.
Width
);
790
Assert.Equal(width, header.
Width
);
806
Assert.Equal(width, header.
Width
);
System\Windows\Forms\ColumnHeaderTests.cs (22)
32
Assert.Equal(60, header.
Width
);
58
Assert.Equal(60, header.
Width
);
82
Assert.Equal(60, header.
Width
);
1223
Assert.Equal(60, header.
Width
);
1240
Assert.Equal(60, header.
Width
);
1264
Assert.Equal(header.
Width
, header.
Width
);
1290
Assert.Equal(value, header.
Width
);
1294
Assert.Equal(value, header.
Width
);
1306
Assert.Equal(value, header.
Width
);
1311
Assert.Equal(value, header.
Width
);
1331
Assert.Equal(value, header.
Width
);
1339
Assert.Equal(value, header.
Width
);
1389
Assert.Equal(60, header.
Width
);
1393
Assert.Equal(60, header.
Width
);
1405
Assert.Equal(60, header.
Width
);
1410
Assert.Equal(60, header.
Width
);
1430
Assert.Equal(60, header.
Width
);
1438
Assert.Equal(60, header.
Width
);
1486
Assert.Equal(10, header.
Width
);
1525
Assert.Equal(10, header.
Width
);
1565
Assert.Equal(10, header.
Width
);