4 types derived from ColumnHeader
System.Windows.Forms.Tests (4)
System\Windows\Forms\ColumnHeaderConverterTests.cs (3)
178private class PrivateDefaultConstructor : ColumnHeader 188private class PrivateStringConstructor : ColumnHeader 197private class PrivateIntConstructor : ColumnHeader
System\Windows\Forms\ColumnHeaderTests.cs (1)
1645private class SubColumnHeader : ColumnHeader
307 instantiations of ColumnHeader
System.Windows.Forms (15)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
438columnHeader = new ColumnHeader();
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (14)
175ColumnHeader columnHeader = new ColumnHeader 193ColumnHeader columnHeader = new ColumnHeader 204ColumnHeader columnHeader = new ColumnHeader 214ColumnHeader columnHeader = new ColumnHeader 224ColumnHeader columnHeader = new ColumnHeader 235ColumnHeader columnHeader = new(imageKey) 247ColumnHeader columnHeader = new(imageIndex) 418ColumnHeader columnHeader = new ColumnHeader 431ColumnHeader columnHeader = new ColumnHeader 440ColumnHeader columnHeader = new ColumnHeader 450ColumnHeader columnHeader = new ColumnHeader 460ColumnHeader columnHeader = new ColumnHeader 471ColumnHeader columnHeader = new(imageKey) 483ColumnHeader 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)
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 (23)
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()); 1149listView.Columns.Add(new ColumnHeader("Column 1") { Width = 70 }); 1150listView.Columns.Add(new ColumnHeader("Column 2") { Width = 70 }); 1172listView.Columns.Add(new ColumnHeader("Column 1") { Width = 70 }); 1173listView.Columns.Add(new ColumnHeader("Column 2") { Width = 70 }); 1191listView.Columns.Add(new ColumnHeader("Column 1") { Width = 70 }); 1192listView.Columns.Add(new ColumnHeader("Column 2") { Width = 70 }); 1193listView.Columns.Add(new ColumnHeader("Column 3") { Width = 70 }); 1217listView.Columns.Add(new ColumnHeader("Column 1") { Width = 70 }); 1218listView.Columns.Add(new ColumnHeader("Column 2") { Width = 70 }); 1219listView.Columns.Add(new ColumnHeader("Column 3") { Width = 70 }); 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 (22)
1156listView.Columns.Add(new ColumnHeader($"Column {i}")); 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 (13)
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(); 820listView.Columns.Add(new ColumnHeader($"Column {i}"));
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
161listView.Columns.Add(new ColumnHeader() { Text = "Column 1", Width = 100 });
System\Windows\Forms\ColumnHeaderCollectionTests.cs (63)
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(); 358using ColumnHeader header1 = new("text1"); 359using ColumnHeader header2 = new("text2"); 376using ColumnHeader header1 = new("text1") 380using ColumnHeader header2 = new("text2") 384using ColumnHeader header3 = new("text3") 388using ColumnHeader header4 = new("text4") 392using ColumnHeader header5 = new("text5") 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 (5)
50new ColumnHeader(), 56new ColumnHeader("imageKey"), 62new ColumnHeader(1), 139Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new ColumnHeader(), destinationType)); 153using ColumnHeader item = new();
System\Windows\Forms\ColumnHeaderTests.cs (81)
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();
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());
321 references to ColumnHeader
System.Windows.Forms (78)
System\Windows\Forms\Controls\ListView\ColumnHeader.ColumnHeaderImageListIndexer.cs (2)
10private readonly ColumnHeader _owner; 12public ColumnHeaderImageListIndexer(ColumnHeader ch)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (7)
138ColumnHeader? movedHdr = null; 141ColumnHeader hdr = ListView.Columns[i]; 304return _text ?? nameof(ColumnHeader); 434ColumnHeader columnHeader; 436if (clonedType == typeof(ColumnHeader)) 442columnHeader = (ColumnHeader)Activator.CreateInstance(clonedType)!; 511return $"{nameof(ColumnHeader)}: Text: {Text}";
System\Windows\Forms\Controls\ListView\ColumnHeader.ListViewColumnHeaderAccessibleObject.cs (2)
13private readonly ColumnHeader _owningColumnHeader; 15public ListViewColumnHeaderAccessibleObject(ColumnHeader columnHeader)
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
38if (destinationType == typeof(InstanceDescriptor) && value is ColumnHeader col)
System\Windows\Forms\Controls\ListView\ColumnReorderedEventArgs.cs (2)
10public ColumnReorderedEventArgs(int oldDisplayIndex, int newDisplayIndex, ColumnHeader? header) : base() 21public ColumnHeader? Header { get; }
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (2)
22ColumnHeader? header, 56public ColumnHeader? Header { get; }
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
23ColumnHeader? header, 79public ColumnHeader? Header { get; }
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (41)
25public virtual ColumnHeader this[int index] => _owner.GetColumnHeader(index); 42public virtual ColumnHeader? this[string? key] 173public virtual ColumnHeader Add(string? text, int width, HorizontalAlignment textAlign) 175ColumnHeader columnHeader = new ColumnHeader 184public virtual int Add(ColumnHeader value) 191public virtual ColumnHeader Add(string? text) 193ColumnHeader columnHeader = new ColumnHeader 202public virtual ColumnHeader Add(string? text, int width) 204ColumnHeader columnHeader = new ColumnHeader 212public virtual ColumnHeader Add(string? key, string? text) 214ColumnHeader columnHeader = new ColumnHeader 222public virtual ColumnHeader Add(string? key, string? text, int width) 224ColumnHeader columnHeader = new ColumnHeader 233public virtual ColumnHeader Add(string? key, string? text, int width, HorizontalAlignment textAlign, string imageKey) 235ColumnHeader columnHeader = new(imageKey) 245public virtual ColumnHeader Add(string? key, string? text, int width, HorizontalAlignment textAlign, int imageIndex) 247ColumnHeader columnHeader = new(imageIndex) 259public virtual void AddRange(params ColumnHeader[] values) 268ColumnHeader? header = values[i]; 293if (value is ColumnHeader columnHeader) 346public bool Contains(ColumnHeader? value) 353if (value is ColumnHeader columnHeader) 377public int IndexOf(ColumnHeader? value) 392if (value is ColumnHeader columnHeader) 400public void Insert(int index, ColumnHeader value) 410if (value is ColumnHeader columnHeader) 418ColumnHeader columnHeader = new ColumnHeader 431ColumnHeader columnHeader = new ColumnHeader 440ColumnHeader columnHeader = new ColumnHeader 450ColumnHeader columnHeader = new ColumnHeader 460ColumnHeader columnHeader = new ColumnHeader 471ColumnHeader columnHeader = new(imageKey) 483ColumnHeader columnHeader = new(imageIndex) 500ColumnHeader columnHeader = _owner.GetColumnHeader(index); 517ColumnHeader removeHdr = this[index]; 520ColumnHeader hdr = this[i]; 544ColumnHeader[] newHeaders = new ColumnHeader[--columnCount]; 567public virtual void Remove(ColumnHeader column) 578if (value is ColumnHeader columnHeader) 592return Array.Empty<ColumnHeader>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.cs (19)
148private ColumnHeader[]? _columnHeaders; 204private ColumnHeader? _columnHeaderClicked; 2506ColumnHeader? col = (_columnHeaders is not null && _columnHeaders.Length > 0) ? _columnHeaders[0] : null; 3446internal int GetColumnIndex(ColumnHeader ch) 3807internal ColumnHeader InsertColumn(int index, ColumnHeader ch, bool refreshSubItems = true) 3831ColumnHeader[] newHeaders = new ColumnHeader[columnCount + 1]; 3841_columnHeaders = new ColumnHeader[1]; 3864ColumnHeader hdr = Columns[i]; 3899private unsafe int InsertColumnNative(int index, ColumnHeader ch) 4603foreach (ColumnHeader column in _columnHeaders!) 5059foreach (ColumnHeader columnHeader in Columns) 5186internal unsafe void SetColumnInfo(LVCOLUMNW_MASK mask, ColumnHeader ch) 5239private ColumnHeader GetColumnHeader(int index) 5253ColumnHeader columnHeader = GetColumnHeader(columnIndex); 6209ColumnHeader? movedHdr = null; 6213ColumnHeader hdr = Columns[i]; 6295ColumnHeader col = _columnHeaders![0];
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (3)
37ColumnHeader[] colHeaders = new ColumnHeader[value.Length]; 56if (item is ColumnHeader column)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
19private ColumnHeader _maskDescriptionHeader; 20private ColumnHeader _dataFormatHeader; 21private ColumnHeader _validatingTypeHeader;
System\Windows\Forms\Design\StyleEditorForm.cs (3)
66private ColumnHeader _membersColumnHeader; 67private ColumnHeader _sizeTypeColumnHeader; 74private 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)
6using static System.Windows.Forms.ColumnHeader; 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(); 98private static void EnforceAccessibleObjectCreation(ColumnHeader columnHeader)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (11)
39control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 54control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 71control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 102control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 117control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 162ColumnHeader columnHeader1 = new(); 163ColumnHeader columnHeader2 = new(); 164ColumnHeader columnHeader3 = new(); 169listView1.Columns.AddRange((ColumnHeader[])[columnHeader1, columnHeader2, columnHeader3]); 204foreach (ColumnHeader col in listView1.Columns) 228foreach (ColumnHeader col in listView1.Columns)
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\ColumnHeaderCollectionTests.cs (75)
43using ColumnHeader header = new(); 54using ColumnHeader header = new(); 68using ColumnHeader header = new(); 79using ColumnHeader header = new(); 93using ColumnHeader header = new(); 113using ColumnHeader header1 = new(); 114using ColumnHeader header2 = new() 129using ColumnHeader header = new(); 142using ColumnHeader header = new(); 154using ColumnHeader header = new(); 168using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 189using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 211using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 234using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 256using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 279using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 304using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 318Assert.Throws<ArgumentNullException>("ch", () => collection.Add((ColumnHeader)null)); 337using ColumnHeader header = new(); 358using ColumnHeader header1 = new("text1"); 359using ColumnHeader header2 = new("text2"); 360var items = new ColumnHeader[] { header1, header2 }; 376using ColumnHeader header1 = new("text1") 380using ColumnHeader header2 = new("text2") 384using ColumnHeader header3 = new("text3") 388using ColumnHeader header4 = new("text4") 392using ColumnHeader header5 = new("text5") 396var items = new ColumnHeader[] { header1, header2, header3, header4, header5 }; 434using ColumnHeader header = new(); 456using ColumnHeader header = new(); 482using ColumnHeader header = new(); 507using ColumnHeader header = new(); 540using ColumnHeader header = new(); 570using ColumnHeader header1 = new(); 571using ColumnHeader header2 = new() 596using ColumnHeader header = new(); 621using ColumnHeader header = new(); 651using ColumnHeader header1 = new(); 652using ColumnHeader header2 = new() 681using ColumnHeader header = new(); 706using ColumnHeader header = new(); 721using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 733using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 746using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 760using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 773using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 787using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 803using ColumnHeader header = Assert.Single(collection.Cast<ColumnHeader>()); 816using ColumnHeader header = new(); 821Assert.Throws<ArgumentNullException>("ch", () => collection.Insert(1, (ColumnHeader)null)); 831Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, (ColumnHeader)null)); 839using ColumnHeader header = new(); 873using ColumnHeader header = new(); 899using ColumnHeader header = new(); 923using ColumnHeader header = new(); 935using ColumnHeader header = new(); 970using ColumnHeader header = new(); 1009using ColumnHeader header = new(); 1046using ColumnHeader header = new(); 1076using ColumnHeader header = new() 1099using ColumnHeader header = new();
System\Windows\Forms\ColumnHeaderConverterTests.cs (5)
17[InlineData(typeof(ColumnHeader), false)] 37[InlineData(typeof(ColumnHeader), false)] 94public void ColumnHeaderConverter_ConvertTo_InstanceDescriptor_ReturnsExpected(ColumnHeader value, Type[] parameterTypes, object[] arguments) 134[InlineData(typeof(ColumnHeader))] 153using ColumnHeader item = new();
System\Windows\Forms\ColumnHeaderTests.cs (100)
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(); 239PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)]; 240using ColumnHeader item = new(); 260PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.DisplayIndex)]; 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() 858PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)]; 859using ColumnHeader header = new(); 885PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)]; 886using ColumnHeader header = new(); 914PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Name)]; 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(); 1054PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)]; 1055using ColumnHeader header = new(); 1081PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColumnHeader))[nameof(ColumnHeader.Text)]; 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() 1472using ColumnHeader header = Assert.IsType<ColumnHeader>(source.Clone()); 1497using ColumnHeader source = new() 1511using ColumnHeader header = Assert.IsType<ColumnHeader>(source.Clone()); 1571using ColumnHeader header = new(); 1580using ColumnHeader header = new(); 1592using ColumnHeader header = new(); 1600using ColumnHeader header = new() 1635using ColumnHeader header = new(); 1637var indexer = new ColumnHeader.ColumnHeaderImageListIndexer(header)
System\Windows\Forms\ColumnReorderedEventArgsTests.cs (1)
18public void Ctor_Int_Int_ColumnHeader(int oldDisplayIndex, int newDisplayIndex, ColumnHeader header)
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (3)
21public 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) 73public void DrawListViewColumnHeaderEventArgs_DrawBackground_Invoke_Success(Rectangle bounds, ColumnHeader header, ListViewItemStates state, Color foreColor, Color backColor, Font font) 89ColumnHeader header = new() { TextAlign = textAlign };
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (3)
22public void DrawListViewSubItemEventArgs_Ctor_Graphics_ListViewItem_Rectangle_Int_ListViewItemStates(Rectangle bounds, ListViewItem item, ListViewItem.ListViewSubItem subItem, int itemIndex, int columnIndex, ColumnHeader header, ListViewItemStates itemState) 114public void DrawListViewSubItemEventArgs_DrawBackground_HasGraphics_Success(Rectangle bounds, ListViewItem item, ListViewItem.ListViewSubItem subItem, int itemIndex, ColumnHeader header, ListViewItemStates itemState) 124public void DrawListViewSubItemEventArgs_DrawFocusRectangle_HasGraphics_Success(Rectangle bounds, ListViewItem item, ListViewItem.ListViewSubItem subItem, int itemIndex, ColumnHeader header, ListViewItemStates itemState)
System\Windows\Forms\ListViewTests.cs (4)
5013using ColumnHeader columnHeader1 = new(); 5014using ColumnHeader columnHeader2 = new(); 5069using ColumnHeader columnHeader1 = new(); 5070using ColumnHeader columnHeader2 = new();
System.Windows.Forms.UI.IntegrationTests (3)
ListViewTests.cs (3)
517ColumnHeader columnHeader1 = new() { Text = "ColumnHeader1", Width = 140 }; 518ColumnHeader columnHeader2 = new() { Text = "ColumnHeader2", Width = 140 }; 519ColumnHeader columnHeader3 = new() { Text = "ColumnHeader3", Width = 140 };
WinFormsControlsTest (5)
ListViewTest.Designer.cs (5)
39this.columnHeader1 = (System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()); 40this.columnHeader2 = (System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()); 67this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 170private System.Windows.Forms.ColumnHeader columnHeader1; 171private System.Windows.Forms.ColumnHeader columnHeader2;