282 references to ColumnHeader
System.Windows.Forms (13)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (3)
64public ColumnHeader(int imageIndex) : this() 72public ColumnHeader(string imageKey) : this() 438columnHeader = new ColumnHeader();
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (10)
175ColumnHeader columnHeader = new ColumnHeader 193ColumnHeader columnHeader = new ColumnHeader 204ColumnHeader columnHeader = new ColumnHeader 214ColumnHeader columnHeader = new ColumnHeader 224ColumnHeader columnHeader = new ColumnHeader 418ColumnHeader columnHeader = new ColumnHeader 431ColumnHeader columnHeader = new ColumnHeader 440ColumnHeader columnHeader = new ColumnHeader 450ColumnHeader columnHeader = new ColumnHeader 460ColumnHeader columnHeader = new ColumnHeader
System.Windows.Forms.Tests (263)
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (6)
21using ColumnHeader columnHeader = new(); 32using ColumnHeader columnHeader = new() { Text = testText }; 45using ColumnHeader columnHeader = new(); 60using ColumnHeader columnHeader = new(); 74using ColumnHeader columnHeader = new(); 88using ColumnHeader columnHeader = new();
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (13)
266listView.Columns.Add(new ColumnHeader()); 347listView.Columns.Add(new ColumnHeader()); 389listView.Columns.Add(new ColumnHeader()); 450listView.Columns.Add(new ColumnHeader()); 512listView.Columns.Add(new ColumnHeader()); 583listView.Columns.Add(new ColumnHeader()); 638listView.Columns.Add(new ColumnHeader()); 718listView.Columns.Add(new ColumnHeader()); 800listView.Columns.Add(new ColumnHeader()); 852listView.Columns.Add(new ColumnHeader()); 1402listView.Columns.Add(new ColumnHeader() { Name = "Column 1" }); 1403listView.Columns.Add(new ColumnHeader() { Name = "Column 2" }); 1404listView.Columns.Add(new ColumnHeader() { Name = "Column 3" });
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (3)
587listView.Columns.Add(new ColumnHeader()); 1217listView.Columns.Add(new ColumnHeader()); 1429listView.Columns.Add(new ColumnHeader());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (21)
1213listView.Columns.Add(new ColumnHeader() { Name = "Column 1" }); 1214listView.Columns.Add(new ColumnHeader() { Name = "Column 2" }); 1215listView.Columns.Add(new ColumnHeader() { Name = "Column 3" }); 1294listView.Columns.Add(new ColumnHeader()); 1353listView.Columns.Add(new ColumnHeader()); 1411listView.Columns.Add(new ColumnHeader()); 1458listView.Columns.Add(new ColumnHeader()); 1538listView.Columns.Add(new ColumnHeader()); 1539listView.Columns.Add(new ColumnHeader()); 1582listView.Columns.Add(new ColumnHeader()); 1583listView.Columns.Add(new ColumnHeader()); 1584listView.Columns.Add(new ColumnHeader()); 1596listView.Columns.Add(new ColumnHeader()); 1597listView.Columns.Add(new ColumnHeader()); 1598listView.Columns.Add(new ColumnHeader()); 1599listView.Columns.Add(new ColumnHeader()); 1623listView.Columns.Add(new ColumnHeader()); 1641listView.Columns.Add(new ColumnHeader()); 1642listView.Columns.Add(new ColumnHeader()); 1643listView.Columns.Add(new ColumnHeader()); 1977listView.Columns.Add(new ColumnHeader());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (5)
23control.Columns.Add(new ColumnHeader()); 141listView.Columns.Add(new ColumnHeader()); 162ColumnHeader columnHeader1 = new(); 163ColumnHeader columnHeader2 = new(); 164ColumnHeader columnHeader3 = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
23using ColumnHeader column = new(); 49using ColumnHeader column = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (12)
24ColumnHeader columnHeader1 = new(); 25ColumnHeader columnHeader2 = new(); 26ColumnHeader columnHeader3 = new(); 61ColumnHeader columnHeader1 = new(); 62ColumnHeader columnHeader2 = new(); 63ColumnHeader columnHeader3 = new(); 636ColumnHeader columnHeader1 = new(); 637ColumnHeader columnHeader2 = new(); 638ColumnHeader columnHeader3 = new(); 760ColumnHeader columnHeader1 = new(); 761ColumnHeader columnHeader2 = new(); 762ColumnHeader columnHeader3 = new();
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
161listView.Columns.Add(new ColumnHeader() { Text = "Column 1", Width = 100 });
System\Windows\Forms\ColumnHeaderCollectionTests.cs (56)
43using ColumnHeader header = new(); 54using ColumnHeader header = new(); 68using ColumnHeader header = new(); 79using ColumnHeader header = new(); 93using ColumnHeader header = new(); 98Assert.Throws<NotSupportedException>(() => collection[index] = new ColumnHeader()); 113using ColumnHeader header1 = new(); 114using ColumnHeader header2 = new() 129using ColumnHeader header = new(); 142using ColumnHeader header = new(); 154using ColumnHeader header = new(); 337using ColumnHeader header = new(); 434using ColumnHeader header = new(); 456using ColumnHeader header = new(); 482using ColumnHeader header = new(); 507using ColumnHeader header = new(); 540using ColumnHeader header = new(); 544Assert.False(collection.Contains(new ColumnHeader())); 554Assert.False(collection.Contains(new ColumnHeader())); 570using ColumnHeader header1 = new(); 571using ColumnHeader header2 = new() 596using ColumnHeader header = new(); 600Assert.False(collection.Contains(new ColumnHeader())); 611Assert.False(collection.Contains(new ColumnHeader())); 621using ColumnHeader header = new(); 625Assert.Equal(-1, collection.IndexOf(new ColumnHeader())); 635Assert.Equal(-1, collection.IndexOf(new ColumnHeader())); 651using ColumnHeader header1 = new(); 652using ColumnHeader header2 = new() 681using ColumnHeader header = new(); 685Assert.Equal(-1, collection.IndexOf(new ColumnHeader())); 696Assert.Equal(-1, collection.IndexOf(new ColumnHeader())); 706using ColumnHeader header = new(); 707collection.Add(new ColumnHeader()); 816using ColumnHeader header = new(); 839using ColumnHeader header = new(); 840collection.Add(new ColumnHeader()); 865Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ColumnHeader())); 873using ColumnHeader header = new(); 899using ColumnHeader header = new(); 923using ColumnHeader header = new(); 935using ColumnHeader header = new(); 937collection.Add(new ColumnHeader()); 938collection.Add(new ColumnHeader()); 939collection.Add(new ColumnHeader()); 970using ColumnHeader header = new(); 972collection.Add(new ColumnHeader()); 973collection.Add(new ColumnHeader()); 974collection.Add(new ColumnHeader()); 1009using ColumnHeader header = new(); 1011collection.Add(new ColumnHeader()); 1012collection.Add(new ColumnHeader()); 1013collection.Add(new ColumnHeader()); 1046using ColumnHeader header = new(); 1076using ColumnHeader header = new() 1099using ColumnHeader header = new();
System\Windows\Forms\ColumnHeaderConverterTests.cs (6)
50new ColumnHeader(), 139Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new ColumnHeader(), destinationType)); 153using ColumnHeader item = new(); 180private PrivateDefaultConstructor() : base() { } 190public PrivateStringConstructor() : base() { } 199public PrivateIntConstructor() : base() { }
System\Windows\Forms\ColumnHeaderTests.cs (82)
89using ColumnHeader header = new(); 100using ColumnHeader header = new() 131using ColumnHeader header1 = new(); 132using ColumnHeader header2 = new(); 133using ColumnHeader header3 = new(); 157using ColumnHeader header1 = new(); 158using ColumnHeader header2 = new(); 159using ColumnHeader header3 = new(); 211using ColumnHeader header1 = new(); 212using ColumnHeader header2 = new(); 213using ColumnHeader header3 = new(); 231using ColumnHeader header = new(); 240using ColumnHeader item = new(); 261using ColumnHeader item = new(); 284using ColumnHeader header = new() 303using ColumnHeader header = new() 324using ColumnHeader header = new(); 350using ColumnHeader header = new(); 381using ColumnHeader header = new(); 403using ColumnHeader header = new(); 438using ColumnHeader header = new(); 467using ColumnHeader header = new(); 485using ColumnHeader header = new(); 493using ColumnHeader header = new(); 505using ColumnHeader header = new() 524using ColumnHeader header = new() 543using ColumnHeader header = new(); 567using ColumnHeader header = new(); 600using ColumnHeader header = new(); 620using ColumnHeader header = new(); 658using ColumnHeader header = new(); 689using ColumnHeader header = new(); 707using ColumnHeader header = new(); 719using ColumnHeader header = new(); 732using ColumnHeader header = new(); 741using ColumnHeader header = new(); 750using ColumnHeader header = new(); 766using ColumnHeader header = new() 777using ColumnHeader header = new() 793using ColumnHeader header = new(); 811using ColumnHeader header = new(); 841using ColumnHeader header = new() 859using ColumnHeader header = new(); 886using ColumnHeader header = new(); 917using ColumnHeader header = new(); 939using ColumnHeader header = new() 954using ColumnHeader header = new() 970using ColumnHeader header = new(); 986using ColumnHeader header = new(); 1003using ColumnHeader header = new(); 1033using ColumnHeader header1 = new(); 1034using ColumnHeader header2 = new(); 1055using ColumnHeader header = new(); 1082using ColumnHeader header = new(); 1109using ColumnHeader header = new() 1130using ColumnHeader header1 = new(); 1131using ColumnHeader header2 = new(); 1155using ColumnHeader header1 = new(); 1156using ColumnHeader header2 = new(); 1193using ColumnHeader header1 = new(); 1194using ColumnHeader header2 = new(); 1212using ColumnHeader header = new(); 1220using ColumnHeader header = new(); 1230using ColumnHeader header = new(); 1254using ColumnHeader header = new(); 1286using ColumnHeader header = new() 1302using ColumnHeader header = new(); 1320using ColumnHeader header = new(); 1357using ColumnHeader header = new(); 1375using ColumnHeader header = new(); 1387using ColumnHeader header = new(); 1401using ColumnHeader header = new(); 1419using ColumnHeader header = new(); 1449using ColumnHeader header = new(); 1460using ColumnHeader source = new() 1497using ColumnHeader source = new() 1571using ColumnHeader header = new(); 1580using ColumnHeader header = new(); 1592using ColumnHeader header = new(); 1600using ColumnHeader header = new() 1635using ColumnHeader header = new(); 1647public SubColumnHeader() : base()
System\Windows\Forms\ColumnReorderedEventArgsTests.cs (1)
13yield return new object[] { 1, 2, new ColumnHeader() };
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (10)
14yield return new object[] { new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 16yield return new object[] { new Rectangle(1, 2, 3, 4), 1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 40Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont)); 49DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont) 66yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 67yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 68yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 89ColumnHeader header = new() { TextAlign = textAlign }; 99DrawListViewColumnHeaderEventArgs 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)
14yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, -1, new ColumnHeader(), ListViewItemStates.Checked }; 15yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, -1, new ColumnHeader(), ListViewItemStates.Checked }; 16yield return new object[] { new Rectangle(-1, 2, -3, -4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 0, 0, new ColumnHeader(), ListViewItemStates.Focused }; 17yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 1, 2, new ColumnHeader(), ListViewItemStates.Checked }; 41Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 49Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 59Assert.Throws<ArgumentNullException>("subItem", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), new ListViewItem(), null, itemIndex, 0, new ColumnHeader(), ListViewItemStates.Default)); 68DrawListViewSubItemEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, -1, new ColumnHeader(), ListViewItemStates.Checked) 88yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Default }; 89yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Checked }; 90yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Focused }; 94yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Default }; 95yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Checked }; 96yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Focused }; 101yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Default }; 102yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Checked }; 103yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Focused }; 107yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Default }; 108yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Checked }; 109yield 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)
146listView.Columns.Add(new ColumnHeader() { Width = 50 }); 166listView.Columns.Add(new ColumnHeader() { Width = columnWidth }); 411listView.Columns.Add(new ColumnHeader()); 430listView.Columns.Add(new ColumnHeader()); 451listView.Columns.Add(new ColumnHeader()); 471listView.Columns.Add(new ColumnHeader()); 492listView.Columns.Add(new ColumnHeader()); 514listView.Columns.Add(new ColumnHeader()); 535listView.Columns.Add(new ColumnHeader()); 555listView.Columns.Add(new ColumnHeader()); 575listView.Columns.Add(new ColumnHeader()); 592listView.Columns.Add(new ColumnHeader()); 609listView.Columns.Add(new ColumnHeader()); 627listView.Columns.Add(new ColumnHeader());
System\Windows\Forms\ListViewTests.cs (11)
5013using ColumnHeader columnHeader1 = new(); 5014using ColumnHeader columnHeader2 = new(); 5069using ColumnHeader columnHeader1 = new(); 5070using ColumnHeader columnHeader2 = new(); 5147listView.Columns.Add(new ColumnHeader() { Text = "Column 1", Width = 100 }); 5148listView.Columns.Add(new ColumnHeader() { Text = "Column 2", Width = 100 }); 5149listView.Columns.Add(new ColumnHeader() { Text = "Column 3", Width = 100 }); 5224listView.Columns.Add(new ColumnHeader() { Text = "Column 1", Width = 100 }); 5225listView.Columns.Add(new ColumnHeader() { Text = "Column 2", Width = 100 }); 5226listView.Columns.Add(new ColumnHeader() { Text = "Column 3", Width = 100 }); 6194listView.Columns.Add(new ColumnHeader() { Name = "Column 1" });
System.Windows.Forms.UI.IntegrationTests (4)
ListViewTests.cs (4)
517ColumnHeader columnHeader1 = new() { Text = "ColumnHeader1", Width = 140 }; 518ColumnHeader columnHeader2 = new() { Text = "ColumnHeader2", Width = 140 }; 519ColumnHeader columnHeader3 = new() { Text = "ColumnHeader3", Width = 140 }; 553listView.Columns.Add(new ColumnHeader() { Text = $"ColumnHeader{i}" });
WinFormsControlsTest (2)
ListViewTest.Designer.cs (2)
39this.columnHeader1 = (System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()); 40this.columnHeader2 = (System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader());