C# TabControl 底部的选项卡

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/479016/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 04:59:24  来源:igfitidea点击:

tabs at the bottom of TabControl

c#winforms

提问by 55555

How can I get the Tab Control to place the tabs at the bottom of the control and not at the top

如何让选项卡控件将选项卡放在控件的底部而不是顶部

采纳答案by Pablo Retyk

Open the properties window go to property Alignmentand set it to Bottom

打开属性窗口转到属性对齐并将其设置为底部

回答by ISW

If you want to set the tab alignment programatically, take a look at msdn

如果要以编程方式设置制表符对齐方式,请查看msdn

    // Positions tabs on the bottom of tabControl1
    this.tabControl1.Alignment = System.Windows.Forms.TabAlignment.Bottom;

回答by Jesse Roper

6 years later, it is now

6年后的现在

<TabControl TabStripPlacement="Bottom"/>