231 references to CustomTabOffsets
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
660
int wpar =
CustomTabOffsets
.Count;
662
CustomTabOffsets
.CopyTo(tabStops, 0);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
1764
if (UseCustomTabOffsets &&
CustomTabOffsets
is not null)
1766
int wpar =
CustomTabOffsets
.Count;
1768
CustomTabOffsets
.CopyTo(offsets, 0);
2307
if (IsHandleCreated && UseCustomTabOffsets &&
CustomTabOffsets
is not null)
2309
int wpar =
CustomTabOffsets
.Count;
2311
CustomTabOffsets
.CopyTo(offsets, 0);
System.Windows.Forms.Tests (223)
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (220)
94
Assert.Empty(owner.
CustomTabOffsets
);
100
Assert.Empty(owner.
CustomTabOffsets
);
106
Assert.Empty(owner.
CustomTabOffsets
);
114
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
120
Assert.Equal(new int[] { 4, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
126
Assert.Equal(new int[] { 4, 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
132
Assert.Equal(new int[] { 4, 1, 4 }, owner.
CustomTabOffsets
.Cast<int>());
153
Assert.Empty(owner.
CustomTabOffsets
);
162
Assert.Empty(owner.
CustomTabOffsets
);
171
Assert.Empty(owner.
CustomTabOffsets
);
182
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
195
Assert.Equal(new int[] { 4, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
204
Assert.Equal(new int[] { 4, 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
213
Assert.Equal(new int[] { 4, 1, 4 }, owner.
CustomTabOffsets
.Cast<int>());
263
Assert.Empty(owner.
CustomTabOffsets
);
270
Assert.Empty(owner.
CustomTabOffsets
);
277
Assert.Empty(owner.
CustomTabOffsets
);
284
Assert.Empty(owner.
CustomTabOffsets
);
300
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
306
Assert.Equal(new int[] { 2 }, owner.
CustomTabOffsets
.Cast<int>());
313
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
320
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
327
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
356
Assert.Empty(owner.
CustomTabOffsets
);
366
Assert.Empty(owner.
CustomTabOffsets
);
376
Assert.Empty(owner.
CustomTabOffsets
);
386
Assert.Empty(owner.
CustomTabOffsets
);
405
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
418
Assert.Equal(new int[] { 2 }, owner.
CustomTabOffsets
.Cast<int>());
428
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
438
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
448
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
472
Assert.Empty(owner.
CustomTabOffsets
);
479
Assert.Empty(owner.
CustomTabOffsets
);
495
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
500
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
507
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
535
Assert.Empty(owner.
CustomTabOffsets
);
545
Assert.Empty(owner.
CustomTabOffsets
);
564
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
576
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
586
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
613
Assert.Empty(owner.
CustomTabOffsets
);
620
Assert.Empty(owner.
CustomTabOffsets
);
636
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
644
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
651
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
682
Assert.Empty(owner.
CustomTabOffsets
);
692
Assert.Empty(owner.
CustomTabOffsets
);
711
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
726
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
736
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
791
Assert.Empty(owner.
CustomTabOffsets
);
793
Assert.Empty(owner.
CustomTabOffsets
);
799
Assert.Empty(owner.
CustomTabOffsets
);
801
Assert.Empty(owner.
CustomTabOffsets
);
809
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
812
Assert.Empty(owner.
CustomTabOffsets
);
814
Assert.Empty(owner.
CustomTabOffsets
);
820
Assert.Empty(owner.
CustomTabOffsets
);
822
Assert.Empty(owner.
CustomTabOffsets
);
837
Assert.Empty(owner.
CustomTabOffsets
);
839
Assert.Empty(owner.
CustomTabOffsets
);
845
Assert.Empty(owner.
CustomTabOffsets
);
847
Assert.Empty(owner.
CustomTabOffsets
);
855
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
860
Assert.Empty(owner.
CustomTabOffsets
);
862
Assert.Empty(owner.
CustomTabOffsets
);
868
Assert.Empty(owner.
CustomTabOffsets
);
870
Assert.Empty(owner.
CustomTabOffsets
);
889
Assert.Empty(owner.
CustomTabOffsets
);
891
Assert.Empty(owner.
CustomTabOffsets
);
900
Assert.Empty(owner.
CustomTabOffsets
);
902
Assert.Empty(owner.
CustomTabOffsets
);
913
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
924
Assert.Empty(owner.
CustomTabOffsets
);
926
Assert.Empty(owner.
CustomTabOffsets
);
935
Assert.Empty(owner.
CustomTabOffsets
);
937
Assert.Empty(owner.
CustomTabOffsets
);
960
Assert.Empty(owner.
CustomTabOffsets
);
962
Assert.Empty(owner.
CustomTabOffsets
);
971
Assert.Empty(owner.
CustomTabOffsets
);
973
Assert.Empty(owner.
CustomTabOffsets
);
984
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
996
Assert.Empty(owner.
CustomTabOffsets
);
998
Assert.Empty(owner.
CustomTabOffsets
);
1007
Assert.Empty(owner.
CustomTabOffsets
);
1009
Assert.Empty(owner.
CustomTabOffsets
);
1110
Assert.Empty(owner.
CustomTabOffsets
);
1117
Assert.Empty(owner.
CustomTabOffsets
);
1124
Assert.Empty(owner.
CustomTabOffsets
);
1131
Assert.Empty(owner.
CustomTabOffsets
);
1147
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
1154
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1161
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
1168
Assert.Empty(owner.
CustomTabOffsets
);
1175
Assert.Empty(owner.
CustomTabOffsets
);
1205
Assert.Empty(owner.
CustomTabOffsets
);
1215
Assert.Empty(owner.
CustomTabOffsets
);
1225
Assert.Empty(owner.
CustomTabOffsets
);
1235
Assert.Empty(owner.
CustomTabOffsets
);
1254
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
1268
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1278
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
1288
Assert.Empty(owner.
CustomTabOffsets
);
1298
Assert.Empty(owner.
CustomTabOffsets
);
1324
Assert.Empty(owner.
CustomTabOffsets
);
1331
Assert.Empty(owner.
CustomTabOffsets
);
1338
Assert.Empty(owner.
CustomTabOffsets
);
1354
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
1361
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1368
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
1375
Assert.Empty(owner.
CustomTabOffsets
);
1405
Assert.Empty(owner.
CustomTabOffsets
);
1415
Assert.Empty(owner.
CustomTabOffsets
);
1425
Assert.Empty(owner.
CustomTabOffsets
);
1444
ListBox.IntegerCollection collection = owner.
CustomTabOffsets
;
1458
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1468
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
1478
Assert.Empty(owner.
CustomTabOffsets
);
1567
Assert.Empty(owner.
CustomTabOffsets
);
1573
Assert.Empty(owner.
CustomTabOffsets
);
1579
Assert.Empty(owner.
CustomTabOffsets
);
1587
IList collection = owner.
CustomTabOffsets
;
1596
Assert.Equal(new int[] { 4, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1602
Assert.Equal(new int[] { 4, 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1608
Assert.Equal(new int[] { 4, 1, 4 }, owner.
CustomTabOffsets
.Cast<int>());
1634
Assert.Empty(owner.
CustomTabOffsets
);
1643
Assert.Empty(owner.
CustomTabOffsets
);
1652
Assert.Empty(owner.
CustomTabOffsets
);
1663
IList collection = owner.
CustomTabOffsets
;
1679
Assert.Equal(new int[] { 4, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1688
Assert.Equal(new int[] { 4, 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1697
Assert.Equal(new int[] { 4, 1, 4 }, owner.
CustomTabOffsets
.Cast<int>());
1761
Assert.Empty(owner.
CustomTabOffsets
);
1768
Assert.Empty(owner.
CustomTabOffsets
);
1775
Assert.Empty(owner.
CustomTabOffsets
);
1782
Assert.Empty(owner.
CustomTabOffsets
);
1798
IList collection = owner.
CustomTabOffsets
;
1804
Assert.Equal(new int[] { 2 }, owner.
CustomTabOffsets
.Cast<int>());
1811
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
1818
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
1825
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
1854
Assert.Empty(owner.
CustomTabOffsets
);
1864
Assert.Empty(owner.
CustomTabOffsets
);
1874
Assert.Empty(owner.
CustomTabOffsets
);
1884
Assert.Empty(owner.
CustomTabOffsets
);
1903
IList collection = owner.
CustomTabOffsets
;
1916
Assert.Equal(new int[] { 2 }, owner.
CustomTabOffsets
.Cast<int>());
1926
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
1936
Assert.Equal(new int[] { 1, 2 }, owner.
CustomTabOffsets
.Cast<int>());
1946
Assert.Equal(new int[] { 1, 2, 3 }, owner.
CustomTabOffsets
.Cast<int>());
2008
Assert.Empty(owner.
CustomTabOffsets
);
2010
Assert.Empty(owner.
CustomTabOffsets
);
2016
Assert.Empty(owner.
CustomTabOffsets
);
2018
Assert.Empty(owner.
CustomTabOffsets
);
2026
IList collection = owner.
CustomTabOffsets
;
2029
Assert.Empty(owner.
CustomTabOffsets
);
2031
Assert.Empty(owner.
CustomTabOffsets
);
2037
Assert.Empty(owner.
CustomTabOffsets
);
2039
Assert.Empty(owner.
CustomTabOffsets
);
2054
Assert.Empty(owner.
CustomTabOffsets
);
2056
Assert.Empty(owner.
CustomTabOffsets
);
2062
Assert.Empty(owner.
CustomTabOffsets
);
2064
Assert.Empty(owner.
CustomTabOffsets
);
2072
IList collection = owner.
CustomTabOffsets
;
2077
Assert.Empty(owner.
CustomTabOffsets
);
2079
Assert.Empty(owner.
CustomTabOffsets
);
2085
Assert.Empty(owner.
CustomTabOffsets
);
2087
Assert.Empty(owner.
CustomTabOffsets
);
2106
Assert.Empty(owner.
CustomTabOffsets
);
2108
Assert.Empty(owner.
CustomTabOffsets
);
2117
Assert.Empty(owner.
CustomTabOffsets
);
2119
Assert.Empty(owner.
CustomTabOffsets
);
2130
IList collection = owner.
CustomTabOffsets
;
2141
Assert.Empty(owner.
CustomTabOffsets
);
2143
Assert.Empty(owner.
CustomTabOffsets
);
2152
Assert.Empty(owner.
CustomTabOffsets
);
2154
Assert.Empty(owner.
CustomTabOffsets
);
2177
Assert.Empty(owner.
CustomTabOffsets
);
2179
Assert.Empty(owner.
CustomTabOffsets
);
2188
Assert.Empty(owner.
CustomTabOffsets
);
2190
Assert.Empty(owner.
CustomTabOffsets
);
2201
IList collection = owner.
CustomTabOffsets
;
2213
Assert.Empty(owner.
CustomTabOffsets
);
2215
Assert.Empty(owner.
CustomTabOffsets
);
2224
Assert.Empty(owner.
CustomTabOffsets
);
2226
Assert.Empty(owner.
CustomTabOffsets
);
2347
Assert.Empty(owner.
CustomTabOffsets
);
2354
Assert.Empty(owner.
CustomTabOffsets
);
2361
Assert.Empty(owner.
CustomTabOffsets
);
2368
Assert.Empty(owner.
CustomTabOffsets
);
2384
IList collection = owner.
CustomTabOffsets
;
2394
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
2401
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
2408
Assert.Empty(owner.
CustomTabOffsets
);
2415
Assert.Empty(owner.
CustomTabOffsets
);
2450
Assert.Empty(owner.
CustomTabOffsets
);
2460
Assert.Empty(owner.
CustomTabOffsets
);
2470
Assert.Empty(owner.
CustomTabOffsets
);
2480
Assert.Empty(owner.
CustomTabOffsets
);
2499
IList collection = owner.
CustomTabOffsets
;
2516
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
2526
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
2536
Assert.Empty(owner.
CustomTabOffsets
);
2546
Assert.Empty(owner.
CustomTabOffsets
);
2587
Assert.Empty(owner.
CustomTabOffsets
);
2594
Assert.Empty(owner.
CustomTabOffsets
);
2601
Assert.Empty(owner.
CustomTabOffsets
);
2617
IList collection = owner.
CustomTabOffsets
;
2627
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
2634
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
2641
Assert.Empty(owner.
CustomTabOffsets
);
2676
Assert.Empty(owner.
CustomTabOffsets
);
2686
Assert.Empty(owner.
CustomTabOffsets
);
2696
Assert.Empty(owner.
CustomTabOffsets
);
2715
IList collection = owner.
CustomTabOffsets
;
2732
Assert.Equal(new int[] { 1, 3 }, owner.
CustomTabOffsets
.Cast<int>());
2742
Assert.Equal(new int[] { 1 }, owner.
CustomTabOffsets
.Cast<int>());
2752
Assert.Empty(owner.
CustomTabOffsets
);
System\Windows\Forms\ListBoxTests.cs (3)
50
Assert.Empty(control.
CustomTabOffsets
);
51
Assert.Same(control.
CustomTabOffsets
, control.
CustomTabOffsets
);