32 references to Index
System.Windows.Forms (12)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (10)
151if (i != Index) 160colsOrder[movedHdr.DisplayIndexInternal] = movedHdr.Index; 336if ((Index != 0) && (ListView.RightToLeft == RightToLeft.Yes) && !ListView.IsMirrored) 352if (Index == 0 && _textAlign != HorizontalAlignment.Left) 402if (Index < nativeColumnCount) 404_width = (int)PInvokeCore.SendMessage(ListView, PInvoke.LVM_GETCOLUMNWIDTH, (WPARAM)Index); 414ListView?.SetColumnWidth(Index, ColumnHeaderAutoResizeStyle.None); 425ListView?.AutoResizeColumn(Index, headerAutoResize); 457int index = Index; 498return DisplayIndex != Index;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5225result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.Index, ref lvColumn); 6227indices[movedHdr.Index] = movedHdr.DisplayIndexInternal;
System.Windows.Forms.Tests (20)
System\Windows\Forms\ColumnHeaderCollectionTests.cs (13)
133Assert.Equal(0, header.Index); 440Assert.Equal(-1, header.Index); 447Assert.Equal(-1, header.Index); 463Assert.Equal(-1, header.Index); 470Assert.Equal(-1, header.Index); 488Assert.Equal(-1, header.Index); 495Assert.Equal(-1, header.Index); 514Assert.Equal(-1, header.Index); 521Assert.Equal(-1, header.Index); 883Assert.Equal(-1, header.Index); 890Assert.Equal(-1, header.Index); 905Assert.Equal(-1, header.Index); 912Assert.Equal(-1, header.Index);
System\Windows\Forms\ColumnHeaderTests.cs (7)
25Assert.Equal(-1, header.Index); 51Assert.Equal(-1, header.Index); 75Assert.Equal(-1, header.Index); 743Assert.Equal(0, header.Index); 1479Assert.Equal(-1, header.Index); 1518Assert.Equal(-1, header.Index); 1558Assert.Equal(-1, header.Index);