TabAlignment 列挙体
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Public Enumeration TabAlignment

メンバ名 | 説明 | |
---|---|---|
Bottom | タブはコントロールの下部に配置されています。 | |
Left | タブはコントロールの左端に配置されています。 | |
Right | タブはコントロールの右端に配置されています。 | |
Top | タブはコントロールの上部に配置されています。 |


TabControl.Alignment プロパティ、TabControl.Appearance プロパティ、TabAlignment 列挙体、および TabAppearance 列挙体の使用方法を次のコード例に示します。この例を実行するには、TabControl1 という名前の TabControl が配置されているフォームに、次のコードを貼り付けます。そして、フォームのコンストラクタまたは Load メソッドで ChangeTheLookOfTheTabControl メソッドを呼び出します。
Private Sub ChangeTheLookOfTheTabControl() ' Set the size and location of the TabControl. Me.TabControl1.Location = New System.Drawing.Point(20, 20) TabControl1.Size = New System.Drawing.Size(250, 250) ' Align the tabs along the bottom of the control. TabControl1.Alignment = TabAlignment.Bottom ' Change the tabs to flat buttons. TabControl1.Appearance = TabAppearance.FlatButtons End Sub
private void ChangeTheLookOfTheTabControl() { // Set the size and location of the TabControl. this.TabControl1.Location = new System.Drawing.Point(20, 20); TabControl1.Size = new System.Drawing.Size(250, 250); // Align the tabs along the bottom of the control. TabControl1.Alignment = TabAlignment.Bottom; // Change the tabs to flat buttons. TabControl1.Appearance = TabAppearance.FlatButtons; }
private: void ChangeTheLookOfTheTabControl() { // Set the size and location of the TabControl. this->TabControl1->Location = System::Drawing::Point( 20, 20 ); TabControl1->Size = System::Drawing::Size( 250, 250 ); // Align the tabs along the bottom of the control. TabControl1->Alignment = TabAlignment::Bottom; // Change the tabs to flat buttons. TabControl1->Appearance = TabAppearance::FlatButtons; }
private void ChangeTheLookOfTheTabControl() { // Set the size and location of the TabControl. this.tabControl1.set_Location(new System.Drawing.Point(20, 20)); tabControl1.set_Size(new System.Drawing.Size(250, 250)); // Align the tabs along the bottom of the control. tabControl1.set_Alignment(TabAlignment.Bottom); // Change the tabs to flat buttons. tabControl1.set_Appearance(TabAppearance.FlatButtons); } //ChangeTheLookOfTheTabControl

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- TabAlignment 列挙体のページへのリンク