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)
5229
result = PInvokeCore.SendMessage(this, PInvoke.LVM_SETCOLUMNW, (WPARAM)ch.
Index
, ref lvColumn);
6231
indices[movedHdr.
Index
] = movedHdr.DisplayIndexInternal;
System.Windows.Forms.Tests (20)
System\Windows\Forms\ColumnHeaderCollectionTests.cs (13)
135
Assert.Equal(0, header.
Index
);
442
Assert.Equal(-1, header.
Index
);
449
Assert.Equal(-1, header.
Index
);
465
Assert.Equal(-1, header.
Index
);
472
Assert.Equal(-1, header.
Index
);
490
Assert.Equal(-1, header.
Index
);
497
Assert.Equal(-1, header.
Index
);
516
Assert.Equal(-1, header.
Index
);
523
Assert.Equal(-1, header.
Index
);
885
Assert.Equal(-1, header.
Index
);
892
Assert.Equal(-1, header.
Index
);
907
Assert.Equal(-1, header.
Index
);
914
Assert.Equal(-1, header.
Index
);
System\Windows\Forms\ColumnHeaderTests.cs (7)
27
Assert.Equal(-1, header.
Index
);
53
Assert.Equal(-1, header.
Index
);
77
Assert.Equal(-1, header.
Index
);
745
Assert.Equal(0, header.
Index
);
1481
Assert.Equal(-1, header.
Index
);
1520
Assert.Equal(-1, header.
Index
);
1560
Assert.Equal(-1, header.
Index
);