282 references to ColumnHeader
System.Windows.Forms (13)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (3)
64
public ColumnHeader(int imageIndex) :
this
()
72
public ColumnHeader(string imageKey) :
this
()
438
columnHeader = new
ColumnHeader
();
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (10)
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
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
System.Windows.Forms.Tests (263)
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 (13)
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
());
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 (21)
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 (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\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
161
listView.Columns.Add(new
ColumnHeader
() { Text = "Column 1", Width = 100 });
System\Windows\Forms\ColumnHeaderCollectionTests.cs (56)
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
();
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 (6)
50
new
ColumnHeader
(),
139
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
ColumnHeader
(), destinationType));
153
using ColumnHeader item =
new
();
180
private PrivateDefaultConstructor() :
base
() { }
190
public PrivateStringConstructor() :
base
() { }
199
public PrivateIntConstructor() :
base
() { }
System\Windows\Forms\ColumnHeaderTests.cs (82)
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
();
1647
public SubColumnHeader() :
base
()
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
());