TabControl.Appearance プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TabControl.Appearance プロパティの意味・解説 

TabControl.Appearance プロパティ

コントロールタブ外観を表す値を取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

<LocalizableAttribute(True)> _
Public Property Appearance As
 TabAppearance
Dim instance As TabControl
Dim value As TabAppearance

value = instance.Appearance

instance.Appearance = value
[LocalizableAttribute(true)] 
public TabAppearance Appearance { get; set;
 }
[LocalizableAttribute(true)] 
public:
property TabAppearance Appearance {
    TabAppearance get ();
    void set (TabAppearance value);
}
/** @property */
public TabAppearance get_Appearance ()

/** @property */
public void set_Appearance (TabAppearance value)

プロパティ
TabAppearance 値の 1 つ既定値Normal です。

例外例外
例外種類条件

InvalidEnumArgumentException

プロパティ値が、有効な TabAppearance 値ではありません。

解説解説
使用例使用例

2 つの TabPage オブジェクトのある TabControl を作成する例を次に示します。この例では、Appearance プロパティButtons設定します。この場合タブ ページタブボタンとして表示されます。

この例では、System.Windows.Forms 名前空間使用します

Imports System.Windows.Forms

Public Class Form1
    Inherits Form

    Public Sub New()
        Dim tabText As String()
 = {"tabPage1", "tabPage2"}
        Dim tabControl1 As New
 TabControl()
        Dim tabPage1 As New
 TabPage(tabText(0))
        Dim tabPage2 As New
 TabPage(tabText(1))

        ' Sets the tabs to appear as buttons.
        tabControl1.Appearance = TabAppearance.Buttons

        tabControl1.Controls.AddRange(New TabPage() {tabPage1,
 tabPage2})
        Controls.Add(tabControl1)
    End Sub

    Shared Sub Main()
        Application.Run(New Form1())
    End Sub
End Class
using System.Windows.Forms;

public class Form1 : Form
{
    public Form1()
    {
        string[] tabText = {"tabPage1", "tabPage2"};
        TabControl tabControl1 = new TabControl();
        TabPage tabPage1 = new TabPage(tabText[0]);
        TabPage tabPage2 = new TabPage(tabText[1]);

        // Sets the tabs to appear as buttons.
        tabControl1.Appearance = TabAppearance.Buttons;

        tabControl1.Controls.AddRange(new TabPage[] {tabPage1,
 tabPage2});
        Controls.Add(tabControl1);
    }

    static void Main() 
    {
        Application.Run(new Form1());
    }
}
using namespace System;
using namespace System::Windows::Forms;
public ref class Form1: public
 Form
{
public:
   Form1()
   {
      array<String^>^tabText = {"tabPage1","tabPage2"};
      TabControl^ tabControl1 = gcnew TabControl;
      TabPage^ tabPage1 = gcnew TabPage( tabText[ 0 ] );
      TabPage^ tabPage2 = gcnew TabPage( tabText[ 1 ] );
      
      // Sets the tabs to appear as buttons.
      tabControl1->Appearance = TabAppearance::Buttons;
      array<TabPage^>^tabPageArray = {tabPage1,tabPage2};
      tabControl1->Controls->AddRange( tabPageArray );
      Controls->Add( tabControl1 );
   }

};

int main()
{
   Application::Run( gcnew Form1 );
}

import System.Windows.Forms.*;

public class Form1 extends Form
{
    public Form1()
    {
        String tabText[] =  { "tabPage1", "tabPage2" };
        TabControl tabControl1 = new TabControl();
        TabPage tabPage1 = new TabPage(tabText[0]);
        TabPage tabPage2 = new TabPage(tabText[1]);

        // Sets the tabs to appear as buttons.
        tabControl1.set_Appearance(TabAppearance.Buttons);
        tabControl1.get_Controls().AddRange(new TabPage[] {tabPage1,
 tabPage2});
        get_Controls().Add(tabControl1);
    } //Form1

    public static void main(String[]
 args)
    {
        Application.Run(new Form1());
    } //main
} //Form1
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TabControl クラス
TabControl メンバ
System.Windows.Forms 名前空間
TabControl.Alignment プロパティ
TabAppearance 列挙


このページでは「.NET Framework クラス ライブラリ リファレンス」からTabControl.Appearance プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTabControl.Appearance プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTabControl.Appearance プロパティを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「TabControl.Appearance プロパティ」の関連用語

TabControl.Appearance プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TabControl.Appearance プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS