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

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

SplitContainer.Orientation プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

SplitContainer パネル平方向であるか垂直方向であるかを示す値を取得または設定します

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

Dim instance As SplitContainer
Dim value As Orientation

value = instance.Orientation

instance.Orientation = value
[LocalizableAttribute(true)] 
public Orientation Orientation { get; set;
 }
/** @property */
public Orientation get_Orientation ()

/** @property */
public void set_Orientation (Orientation value)

プロパティ
Orientation 値の 1 つ既定値Vertical です。

例外例外
例外種類条件

InvalidEnumArgumentException

代入された値が、Orientation 値ではありません。

解説解説

Orientation プロパティ使用すると、SplitContainer方向を垂直から水平に、またはその逆に切り替えることができます

使用例使用例

次のコード例では、上側パネル下側パネルに ListView コントロール配置され平方向の分割線を示しますまた、平方向の分割線の他の基本的なプロパティ示します。このコード例は、SplitContainer クラストピック取り上げているコード例一部分です。

' Basic SplitContainer properties.
' This is a horizontal splitter whose top and bottom panels are ListView
 controls. The top panel is fixed.
splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill
' The top panel remains the same size when the form is resized.
splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1
splitContainer2.Location = New System.Drawing.Point(0, 0)
splitContainer2.Name = "splitContainer2"
' Create the horizontal splitter.
splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal
splitContainer2.Size = New System.Drawing.Size(207, 273)
splitContainer2.SplitterDistance = 125
splitContainer2.SplitterWidth = 6
' splitContainer2 is the third control in the tab order.
splitContainer2.TabIndex = 2
splitContainer2.Text = "splitContainer2"
// Basic SplitContainer properties.
// This is a horizontal splitter whose top and bottom panels are ListView
 controls. The top panel is fixed.
splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
// The top panel remains the same size when the form is resized.
splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
splitContainer2.Location = new System.Drawing.Point(0, 0);
splitContainer2.Name = "splitContainer2";
// Create the horizontal splitter.
splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
splitContainer2.Size = new System.Drawing.Size(207, 273);
splitContainer2.SplitterDistance = 125;
splitContainer2.SplitterWidth = 6;
// splitContainer2 is the third control in the tab order.
splitContainer2.TabIndex = 2;
splitContainer2.Text = "splitContainer2";
// Basic SplitContainer properties.
// This is a horizontal splitter whose top and bottom panels are ListView
 controls. The top panel is fixed.
splitContainer2->Dock = System::Windows::Forms::DockStyle::Fill;

// The top panel remains the same size when the form is resized.
splitContainer2->FixedPanel = System::Windows::Forms::FixedPanel::Panel1;
splitContainer2->Location = System::Drawing::Point( 0, 0 );
splitContainer2->Name = "splitContainer2";

// Create the horizontal splitter.
splitContainer2->Orientation = System::Windows::Forms::Orientation::Horizontal;
splitContainer2->Size = System::Drawing::Size( 207, 273 );
splitContainer2->SplitterDistance = 125;
splitContainer2->SplitterWidth = 6;

// splitContainer2 is the third control in the tab order.
splitContainer2->TabIndex = 2;
splitContainer2->Text = "splitContainer2";

// Basic SplitContainer properties.
// This is a horizontal splitter whose top and bottom panels are 
// ListView controls. The top panel is fixed.
splitContainer2.set_Dock(System.Windows.Forms.DockStyle.Fill);

// The top panel remains the same size when the form is resized.
splitContainer2.set_FixedPanel(System.Windows.Forms.
    FixedPanel.Panel1);
splitContainer2.set_Location(new System.Drawing.Point(0, 0));
splitContainer2.set_Name("splitContainer2");

// Create the horizontal splitter.
splitContainer2.set_Orientation(System.Windows.Forms.
    Orientation.Horizontal);
splitContainer2.set_Size(new System.Drawing.Size(207, 273));
splitContainer2.set_SplitterDistance(125);
splitContainer2.set_SplitterWidth(6);

// splitContainer2 is the third control in the tab order.
splitContainer2.set_TabIndex(2);
splitContainer2.set_Text("splitContainer2");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「SplitContainer.Orientation プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS