40 references to Top
System.Windows.Forms (5)
System\Windows\Forms\Controls\TabControl\TabControl.cs (5)
29private TabAlignment _alignment = TabAlignment.Top; 100[DefaultValue(TabAlignment.Top)] 142if (_appearance == TabAppearance.FlatButtons && _alignment != TabAlignment.Top) 317if (_appearance == TabAppearance.FlatButtons && _alignment == TabAlignment.Top) 566_alignment = TabAlignment.Top;
System.Windows.Forms.Tests (35)
System\Windows\Forms\TabControlTests.cs (35)
23Assert.Equal(TabAlignment.Top, control.Alignment); 226[InlineData(TabAlignment.Top, 0x56010800)] 276[InlineData(TabAppearance.Normal, TabAlignment.Top, 0x56010800)] 280[InlineData(TabAppearance.Buttons, TabAlignment.Top, 0x56010900)] 284[InlineData(TabAppearance.FlatButtons, TabAlignment.Top, 0x56010908)] 363yield return new object[] { true, TabAlignment.Top, true }; 368yield return new object[] { false, TabAlignment.Top, false }; 396yield return new object[] { true, TabAlignment.Top, true, 0 }; 401yield return new object[] { false, TabAlignment.Top, false, 0 }; 464control.Alignment = TabAlignment.Top; 466Assert.Equal(TabAlignment.Top, control.Alignment); 1619yield return new object[] { TabAlignment.Left, true, TabAlignment.Left, TabAlignment.Top }; 1620yield return new object[] { TabAlignment.Right, true, TabAlignment.Right, TabAlignment.Top }; 1621yield return new object[] { TabAlignment.Top, true, TabAlignment.Top, TabAlignment.Top }; 1623yield return new object[] { TabAlignment.Left, false, TabAlignment.Top, TabAlignment.Top }; 1624yield return new object[] { TabAlignment.Right, false, TabAlignment.Top, TabAlignment.Top }; 1625yield return new object[] { TabAlignment.Top, false, TabAlignment.Top, TabAlignment.Top }; 1657yield return new object[] { TabAlignment.Left, true, TabAlignment.Left, 0, TabAlignment.Top }; 1658yield return new object[] { TabAlignment.Right, true, TabAlignment.Right, 0, TabAlignment.Top }; 1659yield return new object[] { TabAlignment.Top, true, TabAlignment.Top, 1, TabAlignment.Top }; 1661yield return new object[] { TabAlignment.Left, false, TabAlignment.Top, 1, TabAlignment.Top }; 1662yield return new object[] { TabAlignment.Right, false, TabAlignment.Top, 1, TabAlignment.Top }; 1663yield return new object[] { TabAlignment.Top, false, TabAlignment.Top, 0, TabAlignment.Top };