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