22 references to DisplayIndex
System.Windows.Forms (22)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (5)
128throw new ArgumentOutOfRangeException(nameof(DisplayIndex), SR.ColumnHeaderBadDisplayIndex); 142if (hdr.DisplayIndex == DisplayIndexInternal) 146else if (hdr.DisplayIndex >= lowDI && hdr.DisplayIndex <= hiDI) 495return DisplayIndex != Index;
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (8)
271if (header.DisplayIndex == -1) 276if (!usedIndices.Contains(header.DisplayIndex) && header.DisplayIndex >= 0 && header.DisplayIndex < values.Length) 278usedIndices.Add(header.DisplayIndex); 281indices[i] = header.DisplayIndex; 523if (hdr.DisplayIndex >= removeHdr.DisplayIndex)
System\Windows\Forms\Controls\ListView\ListView.cs (9)
2413sumOfDisplayIndices += Columns[i].DisplayIndex; 2414Debug.Assert(Columns[i].DisplayIndex > -1 && Columns[i].DisplayIndex < Columns.Count, "display indices out of whack"); 3881else if (hdr.DisplayIndex >= index) 4611indices[index] = column.DisplayIndex; 6244int from = Columns[header->iItem].DisplayIndex; 6281if (hdr.DisplayIndex == from) 6285else if (hdr.DisplayIndex >= lowDI && hdr.DisplayIndex <= hiDI)