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