SplitContainer クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンテナーの表示領域を 2 つのサイズ変更可能なパネルに分割する移動可能なバーで構成されるコントロールを表します。
public ref class SplitContainer : System::Windows::Forms::ContainerControl
public ref class SplitContainer : System::Windows::Forms::ContainerControl, System::ComponentModel::ISupportInitialize
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)]
public class SplitContainer : System.Windows.Forms.ContainerControl
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)]
public class SplitContainer : System.Windows.Forms.ContainerControl, System.ComponentModel.ISupportInitialize
[System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)]
public class SplitContainer : System.Windows.Forms.ContainerControl, System.ComponentModel.ISupportInitialize
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)>]
type SplitContainer = class
inherit ContainerControl
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)>]
type SplitContainer = class
inherit ContainerControl
interface ISupportInitialize
[<System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.AutoDock)>]
type SplitContainer = class
inherit ContainerControl
interface ISupportInitialize
Public Class SplitContainer
Inherits ContainerControl
Public Class SplitContainer
Inherits ContainerControl
Implements ISupportInitialize
- 継承
- 属性
- 実装
例
次のコード例は、垂直方向と水平方向の両方の SplitContainerを示しています。 垂直スプリッターは 10 ピクセル単位で移動します。 垂直 SplitContainer の左側のパネルには TreeView コントロールが含まれており、右側のパネルには水平方向の SplitContainerが含まれています。 水平方向の SplitContainer の両方のパネルには ListView コントロールが塗りつぶされ、コンテナーのサイズを変更するときにサイズが変更されないように、上部のパネルは FixedPanel として定義されます。 垂直スプリッターを移動すると、 SplitterMoving イベントが発生します。この例では、カーソル スタイルの変更によって示されます。 SplitterMoved イベントは、スプリッターの移動を停止すると発生します。 これは、カーソル スタイルが既定値に戻ることで、この例で示されています。
#using <System.Data.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
using namespace System;
using namespace System::Drawing;
using namespace System::Collections;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
using namespace System::Data;
public ref class Form1: public System::Windows::Forms::Form
{
private:
System::Windows::Forms::SplitContainer^ splitContainer1;
System::Windows::Forms::TreeView^ treeView1;
System::Windows::Forms::SplitContainer^ splitContainer2;
System::Windows::Forms::ListView^ listView2;
System::Windows::Forms::ListView^ listView1;
public:
Form1()
{
InitializeComponent();
}
private:
void InitializeComponent()
{
splitContainer1 = gcnew System::Windows::Forms::SplitContainer;
treeView1 = gcnew System::Windows::Forms::TreeView;
splitContainer2 = gcnew System::Windows::Forms::SplitContainer;
listView1 = gcnew System::Windows::Forms::ListView;
listView2 = gcnew System::Windows::Forms::ListView;
splitContainer1->SuspendLayout();
splitContainer2->SuspendLayout();
SuspendLayout();
// Basic SplitContainer properties.
// This is a vertical splitter that moves in 10-pixel increments.
// This splitter needs no explicit Orientation property because Vertical is the default.
splitContainer1->Dock = System::Windows::Forms::DockStyle::Fill;
splitContainer1->ForeColor = System::Drawing::SystemColors::Control;
splitContainer1->Location = System::Drawing::Point( 0, 0 );
splitContainer1->Name = "splitContainer1";
// You can drag the splitter no nearer than 30 pixels from the left edge of the container.
splitContainer1->Panel1MinSize = 30;
// You can drag the splitter no nearer than 20 pixels from the right edge of the container.
splitContainer1->Panel2MinSize = 20;
splitContainer1->Size = System::Drawing::Size( 292, 273 );
splitContainer1->SplitterDistance = 79;
// This splitter moves in 10-pixel increments.
splitContainer1->SplitterIncrement = 10;
splitContainer1->SplitterWidth = 6;
// splitContainer1 is the first control in the tab order.
splitContainer1->TabIndex = 0;
splitContainer1->Text = "splitContainer1";
// When the splitter moves, the cursor changes shape.
splitContainer1->SplitterMoved += gcnew System::Windows::Forms::SplitterEventHandler( this, &Form1::splitContainer1_SplitterMoved );
splitContainer1->SplitterMoving += gcnew System::Windows::Forms::SplitterCancelEventHandler( this, &Form1::splitContainer1_SplitterMoving );
// Add a TreeView control to the left panel.
splitContainer1->Panel1->BackColor = System::Drawing::SystemColors::Control;
// Add a TreeView control to Panel1.
splitContainer1->Panel1->Controls->Add( treeView1 );
splitContainer1->Panel1->Name = "splitterPanel1";
// Controls placed on Panel1 support right-to-left fonts.
splitContainer1->Panel1->RightToLeft = System::Windows::Forms::RightToLeft::Yes;
// Add a SplitContainer to the right panel.
splitContainer1->Panel2->Controls->Add( splitContainer2 );
splitContainer1->Panel2->Name = "splitterPanel2";
// This TreeView control is in Panel1 of splitContainer1.
treeView1->Dock = System::Windows::Forms::DockStyle::Fill;
treeView1->ForeColor = System::Drawing::SystemColors::InfoText;
treeView1->ImageIndex = -1;
treeView1->Location = System::Drawing::Point( 0, 0 );
treeView1->Name = "treeView1";
treeView1->SelectedImageIndex = -1;
treeView1->Size = System::Drawing::Size( 79, 273 );
// treeView1 is the second control in the tab order.
treeView1->TabIndex = 1;
// 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";
// This splitter panel contains the top ListView control.
splitContainer2->Panel1->Controls->Add( listView1 );
splitContainer2->Panel1->Name = "splitterPanel3";
// This splitter panel contains the bottom ListView control.
splitContainer2->Panel2->Controls->Add( listView2 );
splitContainer2->Panel2->Name = "splitterPanel4";
// This ListView control is in the top panel of splitContainer2.
listView1->Dock = System::Windows::Forms::DockStyle::Fill;
listView1->Location = System::Drawing::Point( 0, 0 );
listView1->Name = "listView1";
listView1->Size = System::Drawing::Size( 207, 125 );
// listView1 is the fourth control in the tab order.
listView1->TabIndex = 3;
// This ListView control is in the bottom panel of splitContainer2.
listView2->Dock = System::Windows::Forms::DockStyle::Fill;
listView2->Location = System::Drawing::Point( 0, 0 );
listView2->Name = "listView2";
listView2->Size = System::Drawing::Size( 207, 142 );
// listView2 is the fifth control in the tab order.
listView2->TabIndex = 4;
// These are basic properties of the form.
ClientSize = System::Drawing::Size( 292, 273 );
Controls->Add( splitContainer1 );
Name = "Form1";
Text = "Form1";
splitContainer1->ResumeLayout( false );
splitContainer2->ResumeLayout( false );
ResumeLayout( false );
}
void splitContainer1_SplitterMoving( System::Object^ /*sender*/, System::Windows::Forms::SplitterCancelEventArgs ^ /*e*/ )
{
// As the splitter moves, change the cursor type.
::Cursor::Current = System::Windows::Forms::Cursors::NoMoveVert;
}
void splitContainer1_SplitterMoved( System::Object^ /*sender*/, System::Windows::Forms::SplitterEventArgs^ /*e*/ )
{
// When the splitter stops moving, change the cursor back to the default.
::Cursor::Current = System::Windows::Forms::Cursors::Default;
}
};
[STAThread]
int main()
{
Application::Run( gcnew Form1 );
}
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.ListView listView2;
private System.Windows.Forms.ListView listView1;
public Form1()
{
InitializeComponent();
}
private void InitializeComponent()
{
splitContainer1 = new System.Windows.Forms.SplitContainer();
treeView1 = new System.Windows.Forms.TreeView();
splitContainer2 = new System.Windows.Forms.SplitContainer();
listView1 = new System.Windows.Forms.ListView();
listView2 = new System.Windows.Forms.ListView();
splitContainer1.SuspendLayout();
splitContainer2.SuspendLayout();
SuspendLayout();
// Basic SplitContainer properties.
// This is a vertical splitter that moves in 10-pixel increments.
// This splitter needs no explicit Orientation property because Vertical is the default.
splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
splitContainer1.ForeColor = System.Drawing.SystemColors.Control;
splitContainer1.Location = new System.Drawing.Point(0, 0);
splitContainer1.Name = "splitContainer1";
// You can drag the splitter no nearer than 30 pixels from the left edge of the container.
splitContainer1.Panel1MinSize = 30;
// You can drag the splitter no nearer than 20 pixels from the right edge of the container.
splitContainer1.Panel2MinSize = 20;
splitContainer1.Size = new System.Drawing.Size(292, 273);
splitContainer1.SplitterDistance = 79;
// This splitter moves in 10-pixel increments.
splitContainer1.SplitterIncrement = 10;
splitContainer1.SplitterWidth = 6;
// splitContainer1 is the first control in the tab order.
splitContainer1.TabIndex = 0;
splitContainer1.Text = "splitContainer1";
// When the splitter moves, the cursor changes shape.
splitContainer1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(splitContainer1_SplitterMoved);
splitContainer1.SplitterMoving += new System.Windows.Forms.SplitterCancelEventHandler(splitContainer1_SplitterMoving);
// Add a TreeView control to the left panel.
splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.Control;
// Add a TreeView control to Panel1.
splitContainer1.Panel1.Controls.Add(treeView1);
splitContainer1.Panel1.Name = "splitterPanel1";
// Controls placed on Panel1 support right-to-left fonts.
splitContainer1.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
// Add a SplitContainer to the right panel.
splitContainer1.Panel2.Controls.Add(splitContainer2);
splitContainer1.Panel2.Name = "splitterPanel2";
// This TreeView control is in Panel1 of splitContainer1.
treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
treeView1.ForeColor = System.Drawing.SystemColors.InfoText;
treeView1.ImageIndex = -1;
treeView1.Location = new System.Drawing.Point(0, 0);
treeView1.Name = "treeView1";
treeView1.SelectedImageIndex = -1;
treeView1.Size = new System.Drawing.Size(79, 273);
// treeView1 is the second control in the tab order.
treeView1.TabIndex = 1;
// 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";
// This splitter panel contains the top ListView control.
splitContainer2.Panel1.Controls.Add(listView1);
splitContainer2.Panel1.Name = "splitterPanel3";
// This splitter panel contains the bottom ListView control.
splitContainer2.Panel2.Controls.Add(listView2);
splitContainer2.Panel2.Name = "splitterPanel4";
// This ListView control is in the top panel of splitContainer2.
listView1.Dock = System.Windows.Forms.DockStyle.Fill;
listView1.Location = new System.Drawing.Point(0, 0);
listView1.Name = "listView1";
listView1.Size = new System.Drawing.Size(207, 125);
// listView1 is the fourth control in the tab order.
listView1.TabIndex = 3;
// This ListView control is in the bottom panel of splitContainer2.
listView2.Dock = System.Windows.Forms.DockStyle.Fill;
listView2.Location = new System.Drawing.Point(0, 0);
listView2.Name = "listView2";
listView2.Size = new System.Drawing.Size(207, 142);
// listView2 is the fifth control in the tab order.
listView2.TabIndex = 4;
// These are basic properties of the form.
ClientSize = new System.Drawing.Size(292, 273);
Controls.Add(splitContainer1);
Name = "Form1";
Text = "Form1";
splitContainer1.ResumeLayout(false);
splitContainer2.ResumeLayout(false);
ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void splitContainer1_SplitterMoving(System.Object sender, System.Windows.Forms.SplitterCancelEventArgs e)
{
// As the splitter moves, change the cursor type.
Cursor.Current = System.Windows.Forms.Cursors.NoMoveVert;
}
private void splitContainer1_SplitterMoved(System.Object sender, System.Windows.Forms.SplitterEventArgs e)
{
// When the splitter stops moving, change the cursor back to the default.
Cursor.Current=System.Windows.Forms.Cursors.Default;
}
}
' Compile this example using the following command line:
' vbc basicsplitcontainer.vb /r:System.Drawing.dll /r:System.Windows.Forms.dll /r:System.dll /r:System.Data.dll
Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Data
Public Class Form1
Inherits System.Windows.Forms.Form
Private WithEvents splitContainer1 As System.Windows.Forms.SplitContainer
Private treeView1 As System.Windows.Forms.TreeView
Private splitContainer2 As System.Windows.Forms.SplitContainer
Private listView2 As System.Windows.Forms.ListView
Private listView1 As System.Windows.Forms.ListView
Public Sub New()
InitializeComponent()
End Sub
Private Sub InitializeComponent()
splitContainer1 = New System.Windows.Forms.SplitContainer()
treeView1 = New System.Windows.Forms.TreeView()
splitContainer2 = New System.Windows.Forms.SplitContainer()
listView1 = New System.Windows.Forms.ListView()
listView2 = New System.Windows.Forms.ListView()
splitContainer1.SuspendLayout()
splitContainer2.SuspendLayout()
SuspendLayout()
' Basic SplitContainer properties.
' This is a vertical splitter that moves in 10-pixel increments.
' This splitter needs no explicit Orientation property because Vertical is the default.
splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill
splitContainer1.ForeColor = System.Drawing.SystemColors.Control
splitContainer1.Location = New System.Drawing.Point(0, 0)
splitContainer1.Name = "splitContainer1"
' You can drag the splitter no nearer than 30 pixels from the left edge of the container.
splitContainer1.Panel1MinSize = 30
' You can drag the splitter no nearer than 20 pixels from the right edge of the container.
splitContainer1.Panel2MinSize = 20
splitContainer1.Size = New System.Drawing.Size(292, 273)
splitContainer1.SplitterDistance = 79
' This splitter moves in 10-pixel increments.
splitContainer1.SplitterIncrement = 10
splitContainer1.SplitterWidth = 6
' splitContainer1 is the first control in the tab order.
splitContainer1.TabIndex = 0
splitContainer1.Text = "splitContainer1"
' Add a TreeView control to the left panel.
splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.Control
' Add a TreeView control to Panel1.
splitContainer1.Panel1.Controls.Add(treeView1)
splitContainer1.Panel1.Name = "splitterPanel1"
' Controls placed on Panel1 support right-to-left fonts.
splitContainer1.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes
' Add a SplitContainer to the right panel.
splitContainer1.Panel2.Controls.Add(splitContainer2)
splitContainer1.Panel2.Name = "splitterPanel2"
' This TreeView control is in Panel1 of splitContainer1.
treeView1.Dock = System.Windows.Forms.DockStyle.Fill
treeView1.ForeColor = System.Drawing.SystemColors.InfoText
treeView1.ImageIndex = - 1
treeView1.Location = New System.Drawing.Point(0, 0)
treeView1.Name = "treeView1"
treeView1.SelectedImageIndex = - 1
treeView1.Size = New System.Drawing.Size(79, 273)
' treeView1 is the second control in the tab order.
treeView1.TabIndex = 1
' 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"
' This splitter panel contains the top ListView control.
splitContainer2.Panel1.Controls.Add(listView1)
splitContainer2.Panel1.Name = "splitterPanel3"
' This splitter panel contains the bottom ListView control.
splitContainer2.Panel2.Controls.Add(listView2)
splitContainer2.Panel2.Name = "splitterPanel4"
' This ListView control is in the top panel of splitContainer2.
listView1.Dock = System.Windows.Forms.DockStyle.Fill
listView1.Location = New System.Drawing.Point(0, 0)
listView1.Name = "listView1"
listView1.Size = New System.Drawing.Size(207, 125)
' listView1 is the fourth control in the tab order.
listView1.TabIndex = 3
' This ListView control is in the bottom panel of splitContainer2.
listView2.Dock = System.Windows.Forms.DockStyle.Fill
listView2.Location = New System.Drawing.Point(0, 0)
listView2.Name = "listView2"
listView2.Size = New System.Drawing.Size(207, 142)
' listView2 is the fifth control in the tab order.
listView2.TabIndex = 4
' These are basic properties of the form.
ClientSize = New System.Drawing.Size(292, 273)
Controls.Add(splitContainer1)
Name = "Form1"
Text = "Form1"
splitContainer1.ResumeLayout(False)
splitContainer2.ResumeLayout(False)
ResumeLayout(False)
End Sub
<STAThread()> _
Shared Sub Main()
Application.Run(New Form1())
End Sub
Private Sub splitContainer1_SplitterMoving(sender As System.Object, e As System.Windows.Forms.SplitterCancelEventArgs) Handles splitContainer1.SplitterMoving
' As the splitter moves, change the cursor type.
Cursor.Current = System.Windows.Forms.Cursors.NoMoveVert
End Sub
Private Sub splitContainer1_SplitterMoved(sender As System.Object, e As System.Windows.Forms.SplitterEventArgs) Handles splitContainer1.SplitterMoved
' When the splitter stops moving, change the cursor back to the default.
Cursor.Current = System.Windows.Forms.Cursors.Default
End Sub
End Class
注釈
2 つのサイズ変更可能なパネルにコントロールを追加したり、既存のSplitContainer パネルに他のSplitContainer コントロールを追加して、サイズ変更可能な表示領域を多数作成することができます。
SplitContainer コントロールを使用して、コンテナーの表示領域 (Formなど) を分割し、ユーザーがSplitContainer パネルに追加されたコントロールのサイズを変更できるようにします。 ユーザーがスプリッターの上にマウス ポインターを渡すと、カーソルが変わり、 SplitContainer コントロール内のコントロールのサイズを変更できることを示します。
注
以前のバージョンの .NET Framework では、 Splitter コントロールのみがサポートされています。
SplitContainer また、設計時のコントロール配置も容易になります。 たとえば、Windows エクスプローラーのようなウィンドウを作成するには、FormにSplitContainer コントロールを追加し、そのDockプロパティをDockStyle.Fillに設定します。
TreeView コントロールをFormに追加し、そのDockプロパティを DockStyle.Fill に設定します。 レイアウトを完了するには、ListView コントロールを追加し、Dock プロパティを DockStyle.Fill に設定して、Formの残りの領域をListViewに占有します。 実行時に、ユーザーはスプリッターを使用して両方のコントロールの幅のサイズを変更できます。
FixedPanel プロパティを使用して、Formまたはその他のコンテナーと共にコントロールのサイズを変更しないように指定します。
SplitterDistanceを使用して、フォームでスプリッターを開始する場所を指定します。 SplitterIncrementを使用して、スプリッターが一度に移動するピクセル数を指定します。 SplitterIncrementの既定値は 1 ピクセルです。
Panel1MinSizeとPanel2MinSizeを使用して、分割バーをSplitContainer パネルの外側の端に移動する方法を指定します。 パネルの既定の最小サイズは 25 ピクセルです。
水平方向を指定するには、 Orientation プロパティを使用します。 SplitContainerの既定の向きは垂直です。
BorderStyleプロパティを使用して、SplitContainerの境界線スタイルを指定し、その境界線スタイルを、SplitContainerに追加するコントロールの境界線スタイルと調整します。
コンストラクター
| 名前 | 説明 |
|---|---|
| SplitContainer() |
SplitContainer クラスの新しいインスタンスを初期化します。 |
フィールド
| 名前 | 説明 |
|---|---|
| ScrollStateAutoScrolling |
AutoScroll プロパティの値を決定します。 (継承元 ScrollableControl) |
| ScrollStateFullDrag |
ユーザーがウィンドウ全体のドラッグを有効にしているかどうかを判断します。 (継承元 ScrollableControl) |
| ScrollStateHScrollVisible |
HScroll プロパティの値が |
| ScrollStateUserHasScrolled |
ユーザーが ScrollableControl コントロールをスクロールしたかどうかを判断します。 (継承元 ScrollableControl) |
| ScrollStateVScrollVisible |
VScroll プロパティの値が |
プロパティ
| 名前 | 説明 |
|---|---|
| AccessibilityObject |
コントロールに割り当てられた AccessibleObject を取得します。 (継承元 Control) |
| AccessibleDefaultActionDescription |
アクセシビリティ クライアント アプリケーションで使用するコントロールの既定のアクションの説明を取得または設定します。 (継承元 Control) |
| AccessibleDescription |
アクセシビリティ クライアント アプリケーションで使用されるコントロールの説明を取得または設定します。 (継承元 Control) |
| AccessibleName |
アクセシビリティ クライアント アプリケーションで使用されるコントロールの名前を取得または設定します。 (継承元 Control) |
| AccessibleRole |
コントロールのアクセス可能なロールを取得または設定します。 (継承元 Control) |
| ActiveControl |
コンテナー コントロールのアクティブなコントロールを取得または設定します。 (継承元 ContainerControl) |
| AllowDrop |
ユーザーがドラッグしたデータをコントロールが受け入れられるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Anchor |
コントロールがバインドされるコンテナーの端を取得または設定し、コントロールのサイズを親と共に変更する方法を決定します。 (継承元 Control) |
| AutoScaleDimensions |
コントロールが設計されたディメンションを取得または設定します。 (継承元 ContainerControl) |
| AutoScaleFactor |
現在の自動スケーリング ディメンションとデザイン時自動スケーリング ディメンションの間のスケール ファクターを取得します。 (継承元 ContainerControl) |
| AutoScaleMode |
コントロールの自動スケーリング モードを取得または設定します。 (継承元 ContainerControl) |
| AutoScroll |
派生クラスでオーバーライドされた場合、コントロールが SplitContainer クライアント領域の外側に配置された場合にスクロール バーが自動的に表示されるかどうかを示す値を取得または設定します。 このプロパティは、このクラスには関係ありません。 |
| AutoScrollMargin |
自動スクロール余白のサイズを取得または設定します。 このプロパティは、このクラスには関係ありません。 このプロパティは、このクラスには関係ありません。 |
| AutoScrollMinSize |
スクロール バーの最小サイズを取得または設定します。 このプロパティは、このクラスには関係ありません。 |
| AutoScrollOffset |
このプロパティは、このクラスには関係ありません。 |
| AutoScrollPosition |
このプロパティは、このクラスには関係ありません。 |
| AutoSize |
SplitContainerがコンテンツ全体を表示するように自動的にサイズ変更されるかどうかを示す値を取得または設定します。 このプロパティは、このクラスには関係ありません。 |
| AutoValidate |
フォーカスが変更されたときに、このコンテナー内のコントロールを自動的に検証するかどうかを示す値を取得または設定します。 (継承元 ContainerControl) |
| BackColor |
コントロールの背景色を取得または設定します。 (継承元 Control) |
| BackgroundImage |
コントロールに表示される背景イメージを取得または設定します。 |
| BackgroundImageLayout |
このプロパティは、このクラスには関係ありません。 |
| BindingContext |
BindingContextのSplitContainerを取得または設定します。 |
| BorderStyle |
SplitContainerの罫線のスタイルを取得または設定します。 |
| Bottom |
コントロールの下端とコンテナーのクライアント領域の上端との間の距離をピクセル単位で取得します。 (継承元 Control) |
| Bounds |
親コントロールに対する非クライアント要素を含むコントロールのサイズと位置をピクセル単位で取得または設定します。 (継承元 Control) |
| CanEnableIme |
IME サポートを有効にするために、 ImeMode プロパティをアクティブな値に設定できるかどうかを示す値を取得します。 (継承元 ContainerControl) |
| CanFocus |
コントロールがフォーカスを受け取ることができるかどうかを示す値を取得します。 (継承元 Control) |
| CanRaiseEvents |
コントロールでイベントを発生できるかどうかを判断します。 (継承元 Control) |
| CanSelect |
コントロールを選択できるかどうかを示す値を取得します。 (継承元 Control) |
| Capture |
コントロールがマウスをキャプチャしたかどうかを示す値を取得または設定します。 (継承元 Control) |
| CausesValidation |
コントロールがフォーカスを受け取ったときに検証を必要とするコントロールに対して検証を実行するかどうかを示す値を取得または設定します。 (継承元 Control) |
| ClientRectangle |
コントロールのクライアント領域を表す四角形を取得します。 (継承元 Control) |
| ClientSize |
コントロールのクライアント領域の高さと幅を取得または設定します。 (継承元 Control) |
| CompanyName |
コントロールを含むアプリケーションの会社または作成者の名前を取得します。 (継承元 Control) |
| Container |
IContainerを含むComponentを取得します。 (継承元 Component) |
| ContainsFocus |
コントロールまたはその子コントロールの 1 つが現在入力フォーカスを持っているかどうかを示す値を取得します。 (継承元 Control) |
| ContextMenu |
古い.
コントロールに関連付けられているショートカット メニューを取得または設定します。 (継承元 Control) |
| ContextMenuStrip |
このコントロールに関連付けられている ContextMenuStrip を取得または設定します。 (継承元 Control) |
| Controls |
子コントロールのコレクションを取得します。 このプロパティは、このクラスには関係ありません。 |
| Created |
コントロールが作成されたかどうかを示す値を取得します。 (継承元 Control) |
| CreateParams |
コントロール ハンドルの作成時に必要な作成パラメーターを取得します。 (継承元 ContainerControl) |
| CurrentAutoScaleDimensions |
画面の現在の実行時ディメンションを取得します。 (継承元 ContainerControl) |
| Cursor |
マウス ポインターがコントロールの上にあるときに表示されるカーソルを取得または設定します。 (継承元 Control) |
| DataBindings |
コントロールのデータ バインディングを取得します。 (継承元 Control) |
| DataContext |
データ バインディングの目的でデータ コンテキストを取得または設定します。 これはアンビエント プロパティです。 (継承元 Control) |
| DefaultCursor |
コントロールの既定のカーソルを取得または設定します。 (継承元 Control) |
| DefaultImeMode |
コントロールでサポートされている既定の入力メソッド エディター (IME) モードを取得します。 (継承元 Control) |
| DefaultMargin |
コントロール間で既定で指定されているスペースをピクセル単位で取得します。 (継承元 Control) |
| DefaultMaximumSize |
コントロールの既定の最大サイズとして指定されている長さと高さをピクセル単位で取得します。 (継承元 Control) |
| DefaultMinimumSize |
コントロールの既定の最小サイズとして指定されている長さと高さをピクセル単位で取得します。 (継承元 Control) |
| DefaultPadding |
コントロールの内容の既定の内部間隔 (ピクセル単位) を取得します。 (継承元 Control) |
| DefaultSize |
SplitContainerの既定のサイズを取得します。 |
| DesignMode |
Componentが現在デザイン モードであるかどうかを示す値を取得します。 (継承元 Component) |
| DeviceDpi |
コントロールが現在表示されているディスプレイ デバイスの DPI 値を取得します。 (継承元 Control) |
| DisplayRectangle |
コントロールの仮想表示領域を表す四角形を取得します。 (継承元 ScrollableControl) |
| Disposing |
基底 Control クラスが破棄中かどうかを示す値を取得します。 (継承元 Control) |
| Dock |
コンテナーの端にアタッチされる SplitContainer 罫線を取得または設定します。 |
| DockPadding |
コントロールのすべての端のドッキング パディング設定を取得します。 (継承元 ScrollableControl) |
| DoubleBuffered |
ちらつきを減らすか防止するために、このコントロールがセカンダリ バッファーを使用してそのサーフェスを再描画する必要があるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Enabled |
コントロールがユーザーの操作に応答できるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Events |
この Componentにアタッチされているイベント ハンドラーの一覧を取得します。 (継承元 Component) |
| FixedPanel |
コンテナーのサイズを変更するときに、パネル SplitContainer 同じサイズを維持する値を取得または設定します。 |
| Focused |
コントロールに入力フォーカスがあるかどうかを示す値を取得します。 (継承元 Control) |
| Font |
コントロールによって表示されるテキストのフォントを取得または設定します。 (継承元 Control) |
| FontHeight |
コントロールのフォントの高さを取得または設定します。 (継承元 Control) |
| ForeColor |
コントロールの前景色を取得または設定します。 (継承元 Control) |
| Handle |
コントロールがバインドされているウィンドウ ハンドルを取得します。 (継承元 Control) |
| HasChildren |
コントロールに 1 つ以上の子コントロールが含まれているかどうかを示す値を取得します。 (継承元 Control) |
| Height |
コントロールの高さを取得または設定します。 (継承元 Control) |
| HorizontalScroll |
水平スクロール バーに関連付けられている特性を取得します。 (継承元 ScrollableControl) |
| HScroll |
水平スクロール バーが表示されるかどうかを示す値を取得または設定します。 (継承元 ScrollableControl) |
| ImeMode |
コントロールの入力メソッド エディター (IME) モードを取得または設定します。 (継承元 Control) |
| ImeModeBase |
コントロールの IME モードを取得または設定します。 (継承元 Control) |
| InvokeRequired |
呼び出し元がコントロールを作成したスレッドとは異なるスレッド上にあるため、呼び出し元がコントロールへのメソッド呼び出しを行うときに呼び出し元が呼び出しメソッドを呼び出す必要があるかどうかを示す値を取得します。 (継承元 Control) |
| IsAccessible |
コントロールがアクセシビリティ アプリケーションに表示されるかどうかを示す値を取得または設定します。 (継承元 Control) |
| IsAncestorSiteInDesignMode |
このコントロールのいずれかの先祖がサイトに存在し、そのサイトが DesignMode 内にあるかどうかを示します。 このプロパティは読み取り専用です。 (継承元 Control) |
| IsDisposed |
コントロールが破棄されたかどうかを示す値を取得します。 (継承元 Control) |
| IsHandleCreated |
コントロールにハンドルが関連付けられているかどうかを示す値を取得します。 (継承元 Control) |
| IsMirrored |
コントロールがミラー化されているかどうかを示す値を取得します。 (継承元 Control) |
| IsSplitterFixed |
分割器が固定か移動可能かを示す値を取得または設定します。 |
| LayoutEngine |
コントロールのレイアウト エンジンのキャッシュされたインスタンスを取得します。 (継承元 Control) |
| Left |
コントロールの左端からコンテナーのクライアント領域の左端までの距離をピクセル単位で取得または設定します。 (継承元 Control) |
| Location |
コンテナーの左上隅を基準としたコントロールの左上隅の座標を取得または設定します。 (継承元 Control) |
| Margin |
コントロール間のスペースを取得または設定します。 (継承元 Control) |
| MaximumSize |
GetPreferredSize(Size)が指定できる上限であるサイズを取得または設定します。 (継承元 Control) |
| MinimumSize |
GetPreferredSize(Size)が指定できる下限のサイズを取得または設定します。 (継承元 Control) |
| Name |
コントロールの名前を取得または設定します。 (継承元 Control) |
| Orientation |
SplitContainer パネルの水平方向または垂直方向を示す値を取得または設定します。 |
| Padding |
SplitterPanelとそのコンテンツの端の間の内部の間隔をピクセル単位で取得または設定します。 このプロパティは、このクラスには関係ありません。 |
| Panel1 |
Orientationに応じて、SplitContainerの左側または上部のパネルを取得します。 |
| Panel1Collapsed |
Panel1を折りたたむか展開するかを決定する値を取得または設定します。 |
| Panel1MinSize |
Panel1の左端または上端からのスプリッターの最小距離をピクセル単位で取得または設定します。 |
| Panel2 |
Orientationに応じて、SplitContainerの右側または下部のパネルを取得します。 |
| Panel2Collapsed |
Panel2を折りたたむか展開するかを決定する値を取得または設定します。 |
| Panel2MinSize |
Panel2の右端または下端からのスプリッターの最小距離をピクセル単位で取得または設定します。 |
| Parent |
コントロールの親コンテナーを取得または設定します。 (継承元 Control) |
| ParentForm |
コンテナー コントロールが割り当てられているフォームを取得します。 (継承元 ContainerControl) |
| PreferredSize |
コントロールが収まる四角形領域のサイズを取得します。 (継承元 Control) |
| ProductName |
コントロールを含むアセンブリの製品名を取得します。 (継承元 Control) |
| ProductVersion |
コントロールを含むアセンブリのバージョンを取得します。 (継承元 Control) |
| RecreatingHandle |
コントロールがハンドルを現在再作成しているかどうかを示す値を取得します。 (継承元 Control) |
| Region |
コントロールに関連付けられているウィンドウ領域を取得または設定します。 (継承元 Control) |
| RenderRightToLeft |
古い.
古い.
このプロパティは廃止されました。 (継承元 Control) |
| ResizeRedraw |
サイズ変更時にコントロール自体を再描画するかどうかを示す値を取得または設定します。 (継承元 Control) |
| Right |
コントロールの右端とコンテナーのクライアント領域の左端との間の距離 (ピクセル単位) を取得します。 (継承元 Control) |
| RightToLeft |
右から左へのフォントを使用してロケールをサポートするようにコントロールの要素を配置するかどうかを示す値を取得または設定します。 (継承元 Control) |
| ScaleChildren |
子コントロールのスケーリングを決定する値を取得します。 (継承元 Control) |
| ShowFocusCues |
コントロールにフォーカスの四角形を表示するかどうかを示す値を取得します。 (継承元 Control) |
| ShowKeyboardCues |
キーボード アクセラレータの表示と非表示を切り替えるために、ユーザー インターフェイスが適切な状態であるかどうかを示す値を取得します。 (継承元 Control) |
| Site |
コントロールのサイトを取得または設定します。 (継承元 Control) |
| Size |
コントロールの高さと幅を取得または設定します。 (継承元 Control) |
| SplitterDistance |
SplitContainerの左端または上端からスプリッターの位置をピクセル単位で取得または設定します。 |
| SplitterIncrement |
分割移動の増分をピクセル単位で表す値を取得または設定します。 |
| SplitterRectangle |
SplitContainerに対するスプリッターのサイズと位置を取得します。 |
| SplitterWidth |
スプリッターの幅をピクセル単位で取得または設定します。 |
| TabIndex |
コンテナー内のコントロールのタブ オーダーを取得または設定します。 (継承元 Control) |
| TabStop |
Tab キーを使用して、ユーザーがスプリッターにフォーカスを与えることができるかどうかを示す値を取得または設定します。 |
| Tag |
コントロールに関するデータを含むオブジェクトを取得または設定します。 (継承元 Control) |
| Text |
このプロパティは、このクラスには関係ありません。 |
| Top |
コントロールの上端とそのコンテナーのクライアント領域の上端との間の距離をピクセル単位で取得または設定します。 (継承元 Control) |
| TopLevelControl |
別の Windows フォーム コントロールによって親にされていない親コントロールを取得します。 通常、これはコントロールが含まれている最も外側の Form です。 (継承元 Control) |
| UseWaitCursor |
現在のコントロールとすべての子コントロールに対して待機カーソルを使用するかどうかを示す値を取得または設定します。 (継承元 Control) |
| VerticalScroll |
垂直スクロール バーに関連付けられている特性を取得します。 (継承元 ScrollableControl) |
| Visible |
コントロールとそのすべての子コントロールを表示するかどうかを示す値を取得または設定します。 (継承元 Control) |
| VScroll |
垂直スクロール バーが表示されるかどうかを示す値を取得または設定します。 (継承元 ScrollableControl) |
| Width |
コントロールの幅を取得または設定します。 (継承元 Control) |
| WindowTarget |
このプロパティは、このクラスには関係ありません。 (継承元 Control) |
メソッド
イベント
| 名前 | 説明 |
|---|---|
| AutoSizeChanged |
AutoSize プロパティの値が変化したときに発生します。 このプロパティは、このクラスには関係ありません。 |
| AutoValidateChanged |
AutoValidate プロパティが変更されたときに発生します。 (継承元 ContainerControl) |
| BackColorChanged |
BackColor プロパティの値が変化したときに発生します。 (継承元 Control) |
| BackgroundImageChanged |
BackgroundImage プロパティが変更されたときに発生します。 |
| BackgroundImageLayoutChanged |
BackgroundImageLayout プロパティが変更されたときに発生します。 このイベントは、このクラスには関係ありません。 |
| BindingContextChanged |
BindingContext プロパティの値が変化したときに発生します。 (継承元 Control) |
| CausesValidationChanged |
CausesValidation プロパティの値が変化したときに発生します。 (継承元 Control) |
| ChangeUICues |
フォーカスまたはキーボード のユーザー インターフェイス (UI) キューが変更されたときに発生します。 (継承元 Control) |
| Click |
コントロールがクリックされたときに発生します。 (継承元 Control) |
| ClientSizeChanged |
ClientSize プロパティの値が変化したときに発生します。 (継承元 Control) |
| ContextMenuChanged |
古い.
ContextMenu プロパティの値が変化したときに発生します。 (継承元 Control) |
| ContextMenuStripChanged |
ContextMenuStrip プロパティの値が変化したときに発生します。 (継承元 Control) |
| ControlAdded |
このイベントは、このクラスには関係ありません。 |
| ControlRemoved |
このイベントは、このクラスには関係ありません。 |
| CursorChanged |
Cursor プロパティの値が変化したときに発生します。 (継承元 Control) |
| DataContextChanged |
DataContext プロパティの値が変化したときに発生します。 (継承元 Control) |
| Disposed |
コンポーネントが Dispose() メソッドの呼び出しによって破棄されるときに発生します。 (継承元 Component) |
| DockChanged |
Dock プロパティの値が変化したときに発生します。 (継承元 Control) |
| DoubleClick |
コントロールがダブルクリックされたときに発生します。 (継承元 Control) |
| DpiChangedAfterParent |
親コントロールまたはフォームの DPI が変更された後に、コントロールの DPI 設定がプログラムによって変更されたときに発生します。 (継承元 Control) |
| DpiChangedBeforeParent |
親コントロールまたはフォームの DPI 変更イベントが発生する前に、コントロールの DPI 設定がプログラムによって変更されたときに発生します。 (継承元 Control) |
| DragDrop |
ドラッグ アンド ドロップ操作が完了したときに発生します。 (継承元 Control) |
| DragEnter |
オブジェクトがコントロールの境界にドラッグされたときに発生します。 (継承元 Control) |
| DragLeave |
オブジェクトがコントロールの境界からドラッグされたときに発生します。 (継承元 Control) |
| DragOver |
オブジェクトがコントロールの境界上にドラッグされたときに発生します。 (継承元 Control) |
| EnabledChanged |
Enabled プロパティ値が変更されたときに発生します。 (継承元 Control) |
| Enter |
コントロールが入力されたときに発生します。 (継承元 Control) |
| FontChanged |
Font プロパティ値が変更されたときに発生します。 (継承元 Control) |
| ForeColorChanged |
ForeColor プロパティ値が変更されたときに発生します。 (継承元 Control) |
| GiveFeedback |
ドラッグ操作中に発生します。 (継承元 Control) |
| GotFocus |
コントロールがフォーカスを受け取ったときに発生します。 (継承元 Control) |
| HandleCreated |
コントロールのハンドルが作成されたときに発生します。 (継承元 Control) |
| HandleDestroyed |
コントロールのハンドルが破棄処理中に発生します。 (継承元 Control) |
| HelpRequested |
ユーザーがコントロールのヘルプを要求したときに発生します。 (継承元 Control) |
| ImeModeChanged |
ImeMode プロパティが変更されたときに発生します。 (継承元 Control) |
| Invalidated |
コントロールの表示に再描画が必要な場合に発生します。 (継承元 Control) |
| KeyDown |
コントロールにフォーカスがあるときにキーが押されたときに発生します。 (継承元 Control) |
| KeyPress |
コントロールにフォーカスがあるときに文字、スペース、またはバックスペース キーが押されたときに発生します。 (継承元 Control) |
| KeyUp |
コントロールにフォーカスがあるときにキーが離されたときに発生します。 (継承元 Control) |
| Layout |
コントロールの子コントロールの位置を変更する必要があるときに発生します。 (継承元 Control) |
| Leave |
入力フォーカスがコントロールから離れると発生します。 (継承元 Control) |
| LocationChanged |
Location プロパティ値が変更されたときに発生します。 (継承元 Control) |
| LostFocus |
コントロールがフォーカスを失ったときに発生します。 (継承元 Control) |
| MarginChanged |
コントロールの余白が変更されたときに発生します。 (継承元 Control) |
| MouseCaptureChanged |
コントロールがマウス キャプチャを失ったときに発生します。 (継承元 Control) |
| MouseClick |
コントロールがマウスでクリックされたときに発生します。 (継承元 Control) |
| MouseDoubleClick |
コントロールがマウスでダブルクリックされたときに発生します。 (継承元 Control) |
| MouseDown |
マウス ポインターがコントロールの上にあり、マウス ボタンが押されたときに発生します。 (継承元 Control) |
| MouseEnter |
マウス ポインターがコントロールに入ったときに発生します。 (継承元 Control) |
| MouseHover |
マウス ポインターがコントロール上にあるときに発生します。 (継承元 Control) |
| MouseLeave |
マウス ポインターがコントロールから離れると発生します。 (継承元 Control) |
| MouseMove |
マウス ポインターがコントロールの上に移動したときに発生します。 (継承元 Control) |
| MouseUp |
マウス ポインターがコントロールの上にあり、マウス ボタンが離されたときに発生します。 (継承元 Control) |
| MouseWheel |
コントロールにフォーカスがあるときにマウス ホイールが移動したときに発生します。 (継承元 Control) |
| Move |
コントロールが移動されたときに発生します。 (継承元 Control) |
| PaddingChanged |
このイベントは、このクラスには関係ありません。 |
| Paint |
コントロールが再描画されたときに発生します。 (継承元 Control) |
| ParentChanged |
Parent プロパティ値が変更されたときに発生します。 (継承元 Control) |
| PreviewKeyDown |
フォーカスがこのコントロールにある間にキーが押されたときに、 KeyDown イベントの前に発生します。 (継承元 Control) |
| QueryAccessibilityHelp |
AccessibleObjectがアクセシビリティ アプリケーションにヘルプを提供しているときに発生します。 (継承元 Control) |
| QueryContinueDrag |
ドラッグ アンド ドロップ操作中に発生し、ドラッグ ソースがドラッグ アンド ドロップ操作を取り消す必要があるかどうかを判断できるようにします。 (継承元 Control) |
| RegionChanged |
Region プロパティの値が変化したときに発生します。 (継承元 Control) |
| Resize |
コントロールのサイズが変更されたときに発生します。 (継承元 Control) |
| RightToLeftChanged |
RightToLeft プロパティ値が変更されたときに発生します。 (継承元 Control) |
| Scroll |
ユーザーまたはコードがクライアント領域をスクロールしたときに発生します。 (継承元 ScrollableControl) |
| SizeChanged |
Size プロパティ値が変更されたときに発生します。 (継承元 Control) |
| SplitterMoved |
分割コントロールが移動されたときに発生します。 |
| SplitterMoving |
分割コントロールが移動中のときに発生します。 |
| StyleChanged |
コントロール スタイルが変更されたときに発生します。 (継承元 Control) |
| SystemColorsChanged |
システムの色が変更されたときに発生します。 (継承元 Control) |
| TabIndexChanged |
TabIndex プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TabStopChanged |
TabStop プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TextChanged |
このイベントは、このクラスには関係ありません。 |
| Validated |
コントロールの検証が完了したときに発生します。 (継承元 Control) |
| Validating |
コントロールが検証中に発生します。 (継承元 Control) |
| VisibleChanged |
Visible プロパティ値が変更されたときに発生します。 (継承元 Control) |
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| IContainerControl.ActivateControl(Control) |
指定したコントロールをアクティブにします。 (継承元 ContainerControl) |
| IDropTarget.OnDragDrop(DragEventArgs) |
DragDrop イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
DragEnter イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
DragLeave イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
DragOver イベントを発生させます。 (継承元 Control) |