4 types derived from ColumnHeader
System.Windows.Forms.Tests (4)
System\Windows\Forms\ColumnHeaderConverterTests.cs (3)
178
private class PrivateDefaultConstructor :
ColumnHeader
188
private class PrivateStringConstructor :
ColumnHeader
197
private class PrivateIntConstructor :
ColumnHeader
System\Windows\Forms\ColumnHeaderTests.cs (1)
1645
private class SubColumnHeader :
ColumnHeader
307 instantiations of ColumnHeader
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
438
columnHeader = new
ColumnHeader
();
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (14)
175
ColumnHeader columnHeader = new
ColumnHeader
193
ColumnHeader columnHeader = new
ColumnHeader
204
ColumnHeader columnHeader = new
ColumnHeader
214
ColumnHeader columnHeader = new
ColumnHeader
224
ColumnHeader columnHeader = new
ColumnHeader
235
ColumnHeader columnHeader =
new
(imageKey)
247
ColumnHeader columnHeader =
new
(imageIndex)
418
ColumnHeader columnHeader = new
ColumnHeader
431
ColumnHeader columnHeader = new
ColumnHeader
440
ColumnHeader columnHeader = new
ColumnHeader
450
ColumnHeader columnHeader = new
ColumnHeader
460
ColumnHeader columnHeader = new
ColumnHeader
471
ColumnHeader columnHeader =
new
(imageKey)
483
ColumnHeader columnHeader =
new
(imageIndex)
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
125
_maskDescriptionHeader = new
ColumnHeader
(resources.GetString("listViewCannedMasks.Columns")!);
126
_dataFormatHeader = new
ColumnHeader
(resources.GetString("listViewCannedMasks.Columns1")!);
127
_validatingTypeHeader = new
ColumnHeader
(resources.GetString("listViewCannedMasks.Columns2")!);
System\Windows\Forms\Design\StyleEditorForm.cs (3)
166
_membersColumnHeader = new
ColumnHeader
(resources.GetString("columnsAndRowsListView.Columns"));
167
_sizeTypeColumnHeader = new
ColumnHeader
(resources.GetString("columnsAndRowsListView.Columns1"));
168
_valueColumnHeader = new
ColumnHeader
(resources.GetString("columnsAndRowsListView.Columns2"));
System.Windows.Forms.Tests (280)
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (6)
21
using ColumnHeader columnHeader =
new
();
32
using ColumnHeader columnHeader =
new
() { Text = testText };
45
using ColumnHeader columnHeader =
new
();
60
using ColumnHeader columnHeader =
new
();
74
using ColumnHeader columnHeader =
new
();
88
using ColumnHeader columnHeader =
new
();
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (23)
266
listView.Columns.Add(new
ColumnHeader
());
347
listView.Columns.Add(new
ColumnHeader
());
389
listView.Columns.Add(new
ColumnHeader
());
450
listView.Columns.Add(new
ColumnHeader
());
512
listView.Columns.Add(new
ColumnHeader
());
583
listView.Columns.Add(new
ColumnHeader
());
638
listView.Columns.Add(new
ColumnHeader
());
718
listView.Columns.Add(new
ColumnHeader
());
800
listView.Columns.Add(new
ColumnHeader
());
852
listView.Columns.Add(new
ColumnHeader
());
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 });
1402
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 1" });
1403
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 2" });
1404
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 3" });
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (3)
587
listView.Columns.Add(new
ColumnHeader
());
1217
listView.Columns.Add(new
ColumnHeader
());
1429
listView.Columns.Add(new
ColumnHeader
());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (22)
1156
listView.Columns.Add(new
ColumnHeader
($"Column {i}"));
1213
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 1" });
1214
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 2" });
1215
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 3" });
1294
listView.Columns.Add(new
ColumnHeader
());
1353
listView.Columns.Add(new
ColumnHeader
());
1411
listView.Columns.Add(new
ColumnHeader
());
1458
listView.Columns.Add(new
ColumnHeader
());
1538
listView.Columns.Add(new
ColumnHeader
());
1539
listView.Columns.Add(new
ColumnHeader
());
1582
listView.Columns.Add(new
ColumnHeader
());
1583
listView.Columns.Add(new
ColumnHeader
());
1584
listView.Columns.Add(new
ColumnHeader
());
1596
listView.Columns.Add(new
ColumnHeader
());
1597
listView.Columns.Add(new
ColumnHeader
());
1598
listView.Columns.Add(new
ColumnHeader
());
1599
listView.Columns.Add(new
ColumnHeader
());
1623
listView.Columns.Add(new
ColumnHeader
());
1641
listView.Columns.Add(new
ColumnHeader
());
1642
listView.Columns.Add(new
ColumnHeader
());
1643
listView.Columns.Add(new
ColumnHeader
());
1977
listView.Columns.Add(new
ColumnHeader
());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (5)
23
control.Columns.Add(new
ColumnHeader
());
141
listView.Columns.Add(new
ColumnHeader
());
162
ColumnHeader columnHeader1 =
new
();
163
ColumnHeader columnHeader2 =
new
();
164
ColumnHeader columnHeader3 =
new
();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
23
using ColumnHeader column =
new
();
49
using ColumnHeader column =
new
();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (13)
24
ColumnHeader columnHeader1 =
new
();
25
ColumnHeader columnHeader2 =
new
();
26
ColumnHeader columnHeader3 =
new
();
61
ColumnHeader columnHeader1 =
new
();
62
ColumnHeader columnHeader2 =
new
();
63
ColumnHeader columnHeader3 =
new
();
636
ColumnHeader columnHeader1 =
new
();
637
ColumnHeader columnHeader2 =
new
();
638
ColumnHeader columnHeader3 =
new
();
760
ColumnHeader columnHeader1 =
new
();
761
ColumnHeader columnHeader2 =
new
();
762
ColumnHeader columnHeader3 =
new
();
820
listView.Columns.Add(new
ColumnHeader
($"Column {i}"));
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
161
listView.Columns.Add(new
ColumnHeader
() { Text = "Column 1", Width = 100 });
System\Windows\Forms\ColumnHeaderCollectionTests.cs (63)
43
using ColumnHeader header =
new
();
54
using ColumnHeader header =
new
();
68
using ColumnHeader header =
new
();
79
using ColumnHeader header =
new
();
93
using ColumnHeader header =
new
();
98
Assert.Throws<NotSupportedException>(() => collection[index] = new
ColumnHeader
());
113
using ColumnHeader header1 =
new
();
114
using ColumnHeader header2 =
new
()
129
using ColumnHeader header =
new
();
142
using ColumnHeader header =
new
();
154
using ColumnHeader header =
new
();
337
using ColumnHeader header =
new
();
358
using ColumnHeader header1 =
new
("text1");
359
using ColumnHeader header2 =
new
("text2");
376
using ColumnHeader header1 =
new
("text1")
380
using ColumnHeader header2 =
new
("text2")
384
using ColumnHeader header3 =
new
("text3")
388
using ColumnHeader header4 =
new
("text4")
392
using ColumnHeader header5 =
new
("text5")
434
using ColumnHeader header =
new
();
456
using ColumnHeader header =
new
();
482
using ColumnHeader header =
new
();
507
using ColumnHeader header =
new
();
540
using ColumnHeader header =
new
();
544
Assert.False(collection.Contains(new
ColumnHeader
()));
554
Assert.False(collection.Contains(new
ColumnHeader
()));
570
using ColumnHeader header1 =
new
();
571
using ColumnHeader header2 =
new
()
596
using ColumnHeader header =
new
();
600
Assert.False(collection.Contains(new
ColumnHeader
()));
611
Assert.False(collection.Contains(new
ColumnHeader
()));
621
using ColumnHeader header =
new
();
625
Assert.Equal(-1, collection.IndexOf(new
ColumnHeader
()));
635
Assert.Equal(-1, collection.IndexOf(new
ColumnHeader
()));
651
using ColumnHeader header1 =
new
();
652
using ColumnHeader header2 =
new
()
681
using ColumnHeader header =
new
();
685
Assert.Equal(-1, collection.IndexOf(new
ColumnHeader
()));
696
Assert.Equal(-1, collection.IndexOf(new
ColumnHeader
()));
706
using ColumnHeader header =
new
();
707
collection.Add(new
ColumnHeader
());
816
using ColumnHeader header =
new
();
839
using ColumnHeader header =
new
();
840
collection.Add(new
ColumnHeader
());
865
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new
ColumnHeader
()));
873
using ColumnHeader header =
new
();
899
using ColumnHeader header =
new
();
923
using ColumnHeader header =
new
();
935
using ColumnHeader header =
new
();
937
collection.Add(new
ColumnHeader
());
938
collection.Add(new
ColumnHeader
());
939
collection.Add(new
ColumnHeader
());
970
using ColumnHeader header =
new
();
972
collection.Add(new
ColumnHeader
());
973
collection.Add(new
ColumnHeader
());
974
collection.Add(new
ColumnHeader
());
1009
using ColumnHeader header =
new
();
1011
collection.Add(new
ColumnHeader
());
1012
collection.Add(new
ColumnHeader
());
1013
collection.Add(new
ColumnHeader
());
1046
using ColumnHeader header =
new
();
1076
using ColumnHeader header =
new
()
1099
using ColumnHeader header =
new
();
System\Windows\Forms\ColumnHeaderConverterTests.cs (5)
50
new
ColumnHeader
(),
56
new
ColumnHeader
("imageKey"),
62
new
ColumnHeader
(1),
139
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
ColumnHeader
(), destinationType));
153
using ColumnHeader item =
new
();
System\Windows\Forms\ColumnHeaderTests.cs (81)
89
using ColumnHeader header =
new
();
100
using ColumnHeader header =
new
()
131
using ColumnHeader header1 =
new
();
132
using ColumnHeader header2 =
new
();
133
using ColumnHeader header3 =
new
();
157
using ColumnHeader header1 =
new
();
158
using ColumnHeader header2 =
new
();
159
using ColumnHeader header3 =
new
();
211
using ColumnHeader header1 =
new
();
212
using ColumnHeader header2 =
new
();
213
using ColumnHeader header3 =
new
();
231
using ColumnHeader header =
new
();
240
using ColumnHeader item =
new
();
261
using ColumnHeader item =
new
();
284
using ColumnHeader header =
new
()
303
using ColumnHeader header =
new
()
324
using ColumnHeader header =
new
();
350
using ColumnHeader header =
new
();
381
using ColumnHeader header =
new
();
403
using ColumnHeader header =
new
();
438
using ColumnHeader header =
new
();
467
using ColumnHeader header =
new
();
485
using ColumnHeader header =
new
();
493
using ColumnHeader header =
new
();
505
using ColumnHeader header =
new
()
524
using ColumnHeader header =
new
()
543
using ColumnHeader header =
new
();
567
using ColumnHeader header =
new
();
600
using ColumnHeader header =
new
();
620
using ColumnHeader header =
new
();
658
using ColumnHeader header =
new
();
689
using ColumnHeader header =
new
();
707
using ColumnHeader header =
new
();
719
using ColumnHeader header =
new
();
732
using ColumnHeader header =
new
();
741
using ColumnHeader header =
new
();
750
using ColumnHeader header =
new
();
766
using ColumnHeader header =
new
()
777
using ColumnHeader header =
new
()
793
using ColumnHeader header =
new
();
811
using ColumnHeader header =
new
();
841
using ColumnHeader header =
new
()
859
using ColumnHeader header =
new
();
886
using ColumnHeader header =
new
();
917
using ColumnHeader header =
new
();
939
using ColumnHeader header =
new
()
954
using ColumnHeader header =
new
()
970
using ColumnHeader header =
new
();
986
using ColumnHeader header =
new
();
1003
using ColumnHeader header =
new
();
1033
using ColumnHeader header1 =
new
();
1034
using ColumnHeader header2 =
new
();
1055
using ColumnHeader header =
new
();
1082
using ColumnHeader header =
new
();
1109
using ColumnHeader header =
new
()
1130
using ColumnHeader header1 =
new
();
1131
using ColumnHeader header2 =
new
();
1155
using ColumnHeader header1 =
new
();
1156
using ColumnHeader header2 =
new
();
1193
using ColumnHeader header1 =
new
();
1194
using ColumnHeader header2 =
new
();
1212
using ColumnHeader header =
new
();
1220
using ColumnHeader header =
new
();
1230
using ColumnHeader header =
new
();
1254
using ColumnHeader header =
new
();
1286
using ColumnHeader header =
new
()
1302
using ColumnHeader header =
new
();
1320
using ColumnHeader header =
new
();
1357
using ColumnHeader header =
new
();
1375
using ColumnHeader header =
new
();
1387
using ColumnHeader header =
new
();
1401
using ColumnHeader header =
new
();
1419
using ColumnHeader header =
new
();
1449
using ColumnHeader header =
new
();
1460
using ColumnHeader source =
new
()
1497
using ColumnHeader source =
new
()
1571
using ColumnHeader header =
new
();
1580
using ColumnHeader header =
new
();
1592
using ColumnHeader header =
new
();
1600
using ColumnHeader header =
new
()
1635
using ColumnHeader header =
new
();
System\Windows\Forms\ColumnReorderedEventArgsTests.cs (1)
13
yield return new object[] { 1, 2, new
ColumnHeader
() };
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (10)
14
yield return new object[] { new Rectangle(1, 2, 3, 4), -1, new
ColumnHeader
(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont };
15
yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, new
ColumnHeader
(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont };
16
yield return new object[] { new Rectangle(1, 2, 3, 4), 1, new
ColumnHeader
(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont };
40
Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new
ColumnHeader
(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont));
49
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new
ColumnHeader
(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont)
66
yield return new object[] { new Rectangle(1, 2, 3, 4), new
ColumnHeader
(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont };
67
yield return new object[] { new Rectangle(1, 2, 3, 4), new
ColumnHeader
(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont };
68
yield return new object[] { new Rectangle(1, 2, 3, 4), new
ColumnHeader
(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont };
89
ColumnHeader header =
new
() { TextAlign = textAlign };
99
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new
ColumnHeader
(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (20)
14
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, -1, new
ColumnHeader
(), ListViewItemStates.Checked };
15
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, -1, new
ColumnHeader
(), ListViewItemStates.Checked };
16
yield return new object[] { new Rectangle(-1, 2, -3, -4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 0, 0, new
ColumnHeader
(), ListViewItemStates.Focused };
17
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 1, 2, new
ColumnHeader
(), ListViewItemStates.Checked };
41
Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, 0, new
ColumnHeader
(), ListViewItemStates.Default));
49
Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), -1, 0, new
ColumnHeader
(), ListViewItemStates.Default));
59
Assert.Throws<ArgumentNullException>("subItem", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), new ListViewItem(), null, itemIndex, 0, new
ColumnHeader
(), ListViewItemStates.Default));
68
DrawListViewSubItemEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, -1, new
ColumnHeader
(), ListViewItemStates.Checked)
88
yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new
ColumnHeader
(), ListViewItemStates.Default };
89
yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new
ColumnHeader
(), ListViewItemStates.Checked };
90
yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new
ColumnHeader
(), ListViewItemStates.Focused };
94
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new
ColumnHeader
(), ListViewItemStates.Default };
95
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new
ColumnHeader
(), ListViewItemStates.Checked };
96
yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new
ColumnHeader
(), ListViewItemStates.Focused };
101
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new
ColumnHeader
(), ListViewItemStates.Default };
102
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new
ColumnHeader
(), ListViewItemStates.Checked };
103
yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new
ColumnHeader
(), ListViewItemStates.Focused };
107
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new
ColumnHeader
(), ListViewItemStates.Default };
108
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new
ColumnHeader
(), ListViewItemStates.Checked };
109
yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new
ColumnHeader
(), ListViewItemStates.Focused };
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (14)
146
listView.Columns.Add(new
ColumnHeader
() { Width = 50 });
166
listView.Columns.Add(new
ColumnHeader
() { Width = columnWidth });
411
listView.Columns.Add(new
ColumnHeader
());
430
listView.Columns.Add(new
ColumnHeader
());
451
listView.Columns.Add(new
ColumnHeader
());
471
listView.Columns.Add(new
ColumnHeader
());
492
listView.Columns.Add(new
ColumnHeader
());
514
listView.Columns.Add(new
ColumnHeader
());
535
listView.Columns.Add(new
ColumnHeader
());
555
listView.Columns.Add(new
ColumnHeader
());
575
listView.Columns.Add(new
ColumnHeader
());
592
listView.Columns.Add(new
ColumnHeader
());
609
listView.Columns.Add(new
ColumnHeader
());
627
listView.Columns.Add(new
ColumnHeader
());
System\Windows\Forms\ListViewTests.cs (11)
5013
using ColumnHeader columnHeader1 =
new
();
5014
using ColumnHeader columnHeader2 =
new
();
5069
using ColumnHeader columnHeader1 =
new
();
5070
using ColumnHeader columnHeader2 =
new
();
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 });
6194
listView.Columns.Add(new
ColumnHeader
() { Name = "Column 1" });
System.Windows.Forms.UI.IntegrationTests (4)
ListViewTests.cs (4)
517
ColumnHeader columnHeader1 =
new
() { Text = "ColumnHeader1", Width = 140 };
518
ColumnHeader columnHeader2 =
new
() { Text = "ColumnHeader2", Width = 140 };
519
ColumnHeader columnHeader3 =
new
() { Text = "ColumnHeader3", Width = 140 };
553
listView.Columns.Add(new
ColumnHeader
() { Text = $"ColumnHeader{i}" });
WinFormsControlsTest (2)
ListViewTest.Designer.cs (2)
39
this.columnHeader1 = (System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.
ColumnHeader
());
40
this.columnHeader2 = (System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.
ColumnHeader
());
321 references to ColumnHeader
System.Windows.Forms (78)
System\Windows\Forms\Controls\ListView\ColumnHeader.ColumnHeaderImageListIndexer.cs (2)
10
private readonly
ColumnHeader
_owner;
12
public ColumnHeaderImageListIndexer(
ColumnHeader
ch)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (7)
138
ColumnHeader
? movedHdr = null;
141
ColumnHeader
hdr = ListView.Columns[i];
304
return _text ?? nameof(
ColumnHeader
);
434
ColumnHeader
columnHeader;
436
if (clonedType == typeof(
ColumnHeader
))
442
columnHeader = (
ColumnHeader
)Activator.CreateInstance(clonedType)!;
511
return $"{nameof(
ColumnHeader
)}: Text: {Text}";
System\Windows\Forms\Controls\ListView\ColumnHeader.ListViewColumnHeaderAccessibleObject.cs (2)
13
private readonly
ColumnHeader
_owningColumnHeader;
15
public ListViewColumnHeaderAccessibleObject(
ColumnHeader
columnHeader)
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
38
if (destinationType == typeof(InstanceDescriptor) && value is
ColumnHeader
col)
System\Windows\Forms\Controls\ListView\ColumnReorderedEventArgs.cs (2)
10
public ColumnReorderedEventArgs(int oldDisplayIndex, int newDisplayIndex,
ColumnHeader
? header) : base()
21
public
ColumnHeader
? Header { get; }
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (2)
22
ColumnHeader
? header,
56
public
ColumnHeader
? Header { get; }
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
23
ColumnHeader
? header,
79
public
ColumnHeader
? Header { get; }
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (41)
25
public virtual
ColumnHeader
this[int index] => _owner.GetColumnHeader(index);
42
public virtual
ColumnHeader
? this[string? key]
173
public virtual
ColumnHeader
Add(string? text, int width, HorizontalAlignment textAlign)
175
ColumnHeader
columnHeader = new ColumnHeader
184
public virtual int Add(
ColumnHeader
value)
191
public virtual
ColumnHeader
Add(string? text)
193
ColumnHeader
columnHeader = new ColumnHeader
202
public virtual
ColumnHeader
Add(string? text, int width)
204
ColumnHeader
columnHeader = new ColumnHeader
212
public virtual
ColumnHeader
Add(string? key, string? text)
214
ColumnHeader
columnHeader = new ColumnHeader
222
public virtual
ColumnHeader
Add(string? key, string? text, int width)
224
ColumnHeader
columnHeader = new ColumnHeader
233
public virtual
ColumnHeader
Add(string? key, string? text, int width, HorizontalAlignment textAlign, string imageKey)
235
ColumnHeader
columnHeader = new(imageKey)
245
public virtual
ColumnHeader
Add(string? key, string? text, int width, HorizontalAlignment textAlign, int imageIndex)
247
ColumnHeader
columnHeader = new(imageIndex)
259
public virtual void AddRange(params
ColumnHeader
[] values)
268
ColumnHeader
? header = values[i];
293
if (value is
ColumnHeader
columnHeader)
346
public bool Contains(
ColumnHeader
? value)
353
if (value is
ColumnHeader
columnHeader)
377
public int IndexOf(
ColumnHeader
? value)
392
if (value is
ColumnHeader
columnHeader)
400
public void Insert(int index,
ColumnHeader
value)
410
if (value is
ColumnHeader
columnHeader)
418
ColumnHeader
columnHeader = new ColumnHeader
431
ColumnHeader
columnHeader = new ColumnHeader
440
ColumnHeader
columnHeader = new ColumnHeader
450
ColumnHeader
columnHeader = new ColumnHeader
460
ColumnHeader
columnHeader = new ColumnHeader
471
ColumnHeader
columnHeader = new(imageKey)
483
ColumnHeader
columnHeader = new(imageIndex)
500
ColumnHeader
columnHeader = _owner.GetColumnHeader(index);
517
ColumnHeader
removeHdr = this[index];
520
ColumnHeader
hdr = this[i];
544
ColumnHeader
[] newHeaders = new
ColumnHeader
[--columnCount];
567
public virtual void Remove(
ColumnHeader
column)
578
if (value is
ColumnHeader
columnHeader)
592
return Array.Empty<
ColumnHeader
>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.cs (19)
148
private
ColumnHeader
[]? _columnHeaders;
204
private
ColumnHeader
? _columnHeaderClicked;
2510
ColumnHeader
? col = (_columnHeaders is not null && _columnHeaders.Length > 0) ? _columnHeaders[0] : null;
3450
internal int GetColumnIndex(
ColumnHeader
ch)
3811
internal
ColumnHeader
InsertColumn(int index,
ColumnHeader
ch, bool refreshSubItems = true)
3835
ColumnHeader
[] newHeaders = new
ColumnHeader
[columnCount + 1];
3845
_columnHeaders = new
ColumnHeader
[1];
3868
ColumnHeader
hdr = Columns[i];
3903
private unsafe int InsertColumnNative(int index,
ColumnHeader
ch)
4607
foreach (
ColumnHeader
column in _columnHeaders!)
5063
foreach (
ColumnHeader
columnHeader in Columns)
5190
internal unsafe void SetColumnInfo(LVCOLUMNW_MASK mask,
ColumnHeader
ch)
5243
private
ColumnHeader
GetColumnHeader(int index)
5257
ColumnHeader
columnHeader = GetColumnHeader(columnIndex);
6213
ColumnHeader
? movedHdr = null;
6217
ColumnHeader
hdr = Columns[i];
6299
ColumnHeader
col = _columnHeaders![0];
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (3)
37
ColumnHeader
[] colHeaders = new
ColumnHeader
[value.Length];
56
if (item is
ColumnHeader
column)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
19
private
ColumnHeader
_maskDescriptionHeader;
20
private
ColumnHeader
_dataFormatHeader;
21
private
ColumnHeader
_validatingTypeHeader;
System\Windows\Forms\Design\StyleEditorForm.cs (3)
66
private
ColumnHeader
_membersColumnHeader;
67
private
ColumnHeader
_sizeTypeColumnHeader;
74
private
ColumnHeader
_valueColumnHeader;
System.Windows.Forms.Design.Tests (2)
EnsureEditorsTests.cs (2)
83
[InlineData(typeof(
ColumnHeader
), "ImageIndex", typeof(ImageIndexEditor))]
84
[InlineData(typeof(
ColumnHeader
), "ImageKey", typeof(ImageIndexEditor))]
System.Windows.Forms.Tests (224)
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (8)
6
using static System.Windows.Forms.
ColumnHeader
;
21
using
ColumnHeader
columnHeader = new();
32
using
ColumnHeader
columnHeader = new() { Text = testText };
45
using
ColumnHeader
columnHeader = new();
60
using
ColumnHeader
columnHeader = new();
74
using
ColumnHeader
columnHeader = new();
88
using
ColumnHeader
columnHeader = new();
98
private static void EnforceAccessibleObjectCreation(
ColumnHeader
columnHeader)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (11)
39
control.Columns.AddRange((
ColumnHeader
[])[new(), new(), new()]);
54
control.Columns.AddRange((
ColumnHeader
[])[new(), new(), new()]);
71
control.Columns.AddRange((
ColumnHeader
[])[new(), new(), new()]);
102
control.Columns.AddRange((
ColumnHeader
[])[new(), new(), new()]);
117
control.Columns.AddRange((
ColumnHeader
[])[new(), new(), new()]);
162
ColumnHeader
columnHeader1 = new();
163
ColumnHeader
columnHeader2 = new();
164
ColumnHeader
columnHeader3 = new();
169
listView1.Columns.AddRange((
ColumnHeader
[])[columnHeader1, columnHeader2, columnHeader3]);
204
foreach (
ColumnHeader
col in listView1.Columns)
228
foreach (
ColumnHeader
col in listView1.Columns)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
23
using
ColumnHeader
column = new();
49
using
ColumnHeader
column = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (12)
24
ColumnHeader
columnHeader1 = new();
25
ColumnHeader
columnHeader2 = new();
26
ColumnHeader
columnHeader3 = new();
61
ColumnHeader
columnHeader1 = new();
62
ColumnHeader
columnHeader2 = new();
63
ColumnHeader
columnHeader3 = new();
636
ColumnHeader
columnHeader1 = new();
637
ColumnHeader
columnHeader2 = new();
638
ColumnHeader
columnHeader3 = new();
760
ColumnHeader
columnHeader1 = new();
761
ColumnHeader
columnHeader2 = new();
762
ColumnHeader
columnHeader3 = new();
System\Windows\Forms\ColumnHeaderCollectionTests.cs (75)
43
using
ColumnHeader
header = new();
54
using
ColumnHeader
header = new();
68
using
ColumnHeader
header = new();
79
using
ColumnHeader
header = new();
93
using
ColumnHeader
header = new();
113
using
ColumnHeader
header1 = new();
114
using
ColumnHeader
header2 = new()
129
using
ColumnHeader
header = new();
142
using
ColumnHeader
header = new();
154
using
ColumnHeader
header = new();
168
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
189
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
211
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
234
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
256
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
279
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
304
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
318
Assert.Throws<ArgumentNullException>("ch", () => collection.Add((
ColumnHeader
)null));
337
using
ColumnHeader
header = new();
358
using
ColumnHeader
header1 = new("text1");
359
using
ColumnHeader
header2 = new("text2");
360
var items = new
ColumnHeader
[] { header1, header2 };
376
using
ColumnHeader
header1 = new("text1")
380
using
ColumnHeader
header2 = new("text2")
384
using
ColumnHeader
header3 = new("text3")
388
using
ColumnHeader
header4 = new("text4")
392
using
ColumnHeader
header5 = new("text5")
396
var items = new
ColumnHeader
[] { header1, header2, header3, header4, header5 };
434
using
ColumnHeader
header = new();
456
using
ColumnHeader
header = new();
482
using
ColumnHeader
header = new();
507
using
ColumnHeader
header = new();
540
using
ColumnHeader
header = new();
570
using
ColumnHeader
header1 = new();
571
using
ColumnHeader
header2 = new()
596
using
ColumnHeader
header = new();
621
using
ColumnHeader
header = new();
651
using
ColumnHeader
header1 = new();
652
using
ColumnHeader
header2 = new()
681
using
ColumnHeader
header = new();
706
using
ColumnHeader
header = new();
721
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
733
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
746
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
760
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
773
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
787
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
803
using
ColumnHeader
header = Assert.Single(collection.Cast<
ColumnHeader
>());
816
using
ColumnHeader
header = new();
821
Assert.Throws<ArgumentNullException>("ch", () => collection.Insert(1, (
ColumnHeader
)null));
831
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, (
ColumnHeader
)null));
839
using
ColumnHeader
header = new();
873
using
ColumnHeader
header = new();
899
using
ColumnHeader
header = new();
923
using
ColumnHeader
header = new();
935
using
ColumnHeader
header = new();
970
using
ColumnHeader
header = new();
1009
using
ColumnHeader
header = new();
1046
using
ColumnHeader
header = new();
1076
using
ColumnHeader
header = new()
1099
using
ColumnHeader
header = new();
System\Windows\Forms\ColumnHeaderConverterTests.cs (5)
17
[InlineData(typeof(
ColumnHeader
), false)]
37
[InlineData(typeof(
ColumnHeader
), false)]
94
public void ColumnHeaderConverter_ConvertTo_InstanceDescriptor_ReturnsExpected(
ColumnHeader
value, Type[] parameterTypes, object[] arguments)
134
[InlineData(typeof(
ColumnHeader
))]
153
using
ColumnHeader
item = new();
System\Windows\Forms\ColumnHeaderTests.cs (100)
89
using
ColumnHeader
header = new();
100
using
ColumnHeader
header = new()
131
using
ColumnHeader
header1 = new();
132
using
ColumnHeader
header2 = new();
133
using
ColumnHeader
header3 = new();
157
using
ColumnHeader
header1 = new();
158
using
ColumnHeader
header2 = new();
159
using
ColumnHeader
header3 = new();
211
using
ColumnHeader
header1 = new();
212
using
ColumnHeader
header2 = new();
213
using
ColumnHeader
header3 = new();
231
using
ColumnHeader
header = new();
239
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.DisplayIndex)];
240
using
ColumnHeader
item = new();
260
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.DisplayIndex)];
261
using
ColumnHeader
item = new();
284
using
ColumnHeader
header = new()
303
using
ColumnHeader
header = new()
324
using
ColumnHeader
header = new();
350
using
ColumnHeader
header = new();
381
using
ColumnHeader
header = new();
403
using
ColumnHeader
header = new();
438
using
ColumnHeader
header = new();
467
using
ColumnHeader
header = new();
485
using
ColumnHeader
header = new();
493
using
ColumnHeader
header = new();
505
using
ColumnHeader
header = new()
524
using
ColumnHeader
header = new()
543
using
ColumnHeader
header = new();
567
using
ColumnHeader
header = new();
600
using
ColumnHeader
header = new();
620
using
ColumnHeader
header = new();
658
using
ColumnHeader
header = new();
689
using
ColumnHeader
header = new();
707
using
ColumnHeader
header = new();
719
using
ColumnHeader
header = new();
732
using
ColumnHeader
header = new();
741
using
ColumnHeader
header = new();
750
using
ColumnHeader
header = new();
766
using
ColumnHeader
header = new()
777
using
ColumnHeader
header = new()
793
using
ColumnHeader
header = new();
811
using
ColumnHeader
header = new();
841
using
ColumnHeader
header = new()
858
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.Name)];
859
using
ColumnHeader
header = new();
885
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.Name)];
886
using
ColumnHeader
header = new();
914
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.Name)];
917
using
ColumnHeader
header = new();
939
using
ColumnHeader
header = new()
954
using
ColumnHeader
header = new()
970
using
ColumnHeader
header = new();
986
using
ColumnHeader
header = new();
1003
using
ColumnHeader
header = new();
1033
using
ColumnHeader
header1 = new();
1034
using
ColumnHeader
header2 = new();
1054
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.Text)];
1055
using
ColumnHeader
header = new();
1081
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
ColumnHeader
))[nameof(
ColumnHeader
.Text)];
1082
using
ColumnHeader
header = new();
1109
using
ColumnHeader
header = new()
1130
using
ColumnHeader
header1 = new();
1131
using
ColumnHeader
header2 = new();
1155
using
ColumnHeader
header1 = new();
1156
using
ColumnHeader
header2 = new();
1193
using
ColumnHeader
header1 = new();
1194
using
ColumnHeader
header2 = new();
1212
using
ColumnHeader
header = new();
1220
using
ColumnHeader
header = new();
1230
using
ColumnHeader
header = new();
1254
using
ColumnHeader
header = new();
1286
using
ColumnHeader
header = new()
1302
using
ColumnHeader
header = new();
1320
using
ColumnHeader
header = new();
1357
using
ColumnHeader
header = new();
1375
using
ColumnHeader
header = new();
1387
using
ColumnHeader
header = new();
1401
using
ColumnHeader
header = new();
1419
using
ColumnHeader
header = new();
1449
using
ColumnHeader
header = new();
1460
using
ColumnHeader
source = new()
1472
using
ColumnHeader
header = Assert.IsType<
ColumnHeader
>(source.Clone());
1497
using
ColumnHeader
source = new()
1511
using
ColumnHeader
header = Assert.IsType<
ColumnHeader
>(source.Clone());
1571
using
ColumnHeader
header = new();
1580
using
ColumnHeader
header = new();
1592
using
ColumnHeader
header = new();
1600
using
ColumnHeader
header = new()
1635
using
ColumnHeader
header = new();
1637
var indexer = new
ColumnHeader
.ColumnHeaderImageListIndexer(header)
System\Windows\Forms\ColumnReorderedEventArgsTests.cs (1)
18
public void Ctor_Int_Int_ColumnHeader(int oldDisplayIndex, int newDisplayIndex,
ColumnHeader
header)
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (3)
21
public void DrawListViewColumnHeaderEventArgs_Ctor_Graphics_Rectangle_Int_ColumnHeader_ListViewItemStates_Color_Color_Font(Rectangle bounds, int columnIndex,
ColumnHeader
header, ListViewItemStates state, Color foreColor, Color backColor, Font font)
73
public void DrawListViewColumnHeaderEventArgs_DrawBackground_Invoke_Success(Rectangle bounds,
ColumnHeader
header, ListViewItemStates state, Color foreColor, Color backColor, Font font)
89
ColumnHeader
header = new() { TextAlign = textAlign };
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (3)
22
public void DrawListViewSubItemEventArgs_Ctor_Graphics_ListViewItem_Rectangle_Int_ListViewItemStates(Rectangle bounds, ListViewItem item, ListViewItem.ListViewSubItem subItem, int itemIndex, int columnIndex,
ColumnHeader
header, ListViewItemStates itemState)
114
public void DrawListViewSubItemEventArgs_DrawBackground_HasGraphics_Success(Rectangle bounds, ListViewItem item, ListViewItem.ListViewSubItem subItem, int itemIndex,
ColumnHeader
header, ListViewItemStates itemState)
124
public void DrawListViewSubItemEventArgs_DrawFocusRectangle_HasGraphics_Success(Rectangle bounds, ListViewItem item, ListViewItem.ListViewSubItem subItem, int itemIndex,
ColumnHeader
header, ListViewItemStates itemState)
System\Windows\Forms\ListViewTests.cs (4)
5013
using
ColumnHeader
columnHeader1 = new();
5014
using
ColumnHeader
columnHeader2 = new();
5069
using
ColumnHeader
columnHeader1 = new();
5070
using
ColumnHeader
columnHeader2 = new();
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 };
WinFormsControlsTest (5)
ListViewTest.Designer.cs (5)
39
this.columnHeader1 = (System.Windows.Forms.
ColumnHeader
)(new System.Windows.Forms.ColumnHeader());
40
this.columnHeader2 = (System.Windows.Forms.
ColumnHeader
)(new System.Windows.Forms.ColumnHeader());
67
this.listView1.Columns.AddRange(new System.Windows.Forms.
ColumnHeader
[] {
170
private System.Windows.Forms.
ColumnHeader
columnHeader1;
171
private System.Windows.Forms.
ColumnHeader
columnHeader2;