SplitContainer.Orientation プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

<LocalizableAttribute(True)> _ Public Property Orientation As Orientation
Dim instance As SplitContainer Dim value As Orientation value = instance.Orientation instance.Orientation = value
[LocalizableAttribute(true)] public Orientation Orientation { get; set; }
[LocalizableAttribute(true)] public: property Orientation Orientation { Orientation get (); void set (Orientation value); }
/** @property */ public Orientation get_Orientation () /** @property */ public void set_Orientation (Orientation value)
public function get Orientation () : Orientation public function set Orientation (value : Orientation)
Orientation 値の 1 つ。既定値は Vertical です。

例外の種類 | 条件 |
---|---|
InvalidEnumArgumentException | 代入された値が、Orientation 値ではありません。 |


次のコード例では、上側パネルと下側パネルに 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");

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSplitContainer.Orientation プロパティを検索する場合は、下記のリンクをクリックしてください。

- SplitContainer.Orientation プロパティのページへのリンク