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