ToolStripPanel.Join メソッド

定義

ToolStripToolStripPanelを追加します。

オーバーロード

名前 説明
Join(ToolStrip)

指定した ToolStripToolStripPanelに追加します。

Join(ToolStrip, Point)

指定した場所にあるToolStripPanelに、指定したToolStripを追加します。

Join(ToolStrip, Int32)

指定した ToolStrip を、指定した行の ToolStripPanel に追加します。

Join(ToolStrip, Int32, Int32)

指定した座標のToolStripPanelに、指定したToolStripを追加します。

Join(ToolStrip)

指定した ToolStripToolStripPanelに追加します。

public:
 void Join(System::Windows::Forms::ToolStrip ^ toolStripToDrag);
public void Join(System.Windows.Forms.ToolStrip toolStripToDrag);
member this.Join : System.Windows.Forms.ToolStrip -> unit
Public Sub Join (toolStripToDrag As ToolStrip)

パラメーター

toolStripToDrag
ToolStrip

ToolStripに追加するToolStripPanel

次のコード例では、 Join コンストラクターの使用方法を示します。 この例は、 ToolStripPanel クラスの概要で使用できるより大きな例の一部です。

// Create ToolStripPanel controls.
ToolStripPanel tspTop = new ToolStripPanel();
ToolStripPanel tspBottom = new ToolStripPanel();
ToolStripPanel tspLeft = new ToolStripPanel();
ToolStripPanel tspRight = new ToolStripPanel();

// Dock the ToolStripPanel controls to the edges of the form.
tspTop.Dock = DockStyle.Top;
tspBottom.Dock = DockStyle.Bottom;
tspLeft.Dock = DockStyle.Left;
tspRight.Dock = DockStyle.Right;

// Create ToolStrip controls to move among the 
// ToolStripPanel controls.

// Create the "Top" ToolStrip control and add
// to the corresponding ToolStripPanel.
ToolStrip tsTop = new ToolStrip();
tsTop.Items.Add("Top");
tspTop.Join(tsTop);

// Create the "Bottom" ToolStrip control and add
// to the corresponding ToolStripPanel.
ToolStrip tsBottom = new ToolStrip();
tsBottom.Items.Add("Bottom");
tspBottom.Join(tsBottom);

// Create the "Right" ToolStrip control and add
// to the corresponding ToolStripPanel.
ToolStrip tsRight = new ToolStrip();
tsRight.Items.Add("Right");
tspRight.Join(tsRight);

// Create the "Left" ToolStrip control and add
// to the corresponding ToolStripPanel.
ToolStrip tsLeft = new ToolStrip();
tsLeft.Items.Add("Left");
tspLeft.Join(tsLeft);
' Create ToolStripPanel controls.
Dim tspTop As New ToolStripPanel()
Dim tspBottom As New ToolStripPanel()
Dim tspLeft As New ToolStripPanel()
Dim tspRight As New ToolStripPanel()

' Dock the ToolStripPanel controls to the edges of the form.
tspTop.Dock = DockStyle.Top
tspBottom.Dock = DockStyle.Bottom
tspLeft.Dock = DockStyle.Left
tspRight.Dock = DockStyle.Right

' Create ToolStrip controls to move among the 
' ToolStripPanel controls.
' Create the "Top" ToolStrip control and add
' to the corresponding ToolStripPanel.
Dim tsTop As New ToolStrip()
tsTop.Items.Add("Top")
tspTop.Join(tsTop)

' Create the "Bottom" ToolStrip control and add
' to the corresponding ToolStripPanel.
Dim tsBottom As New ToolStrip()
tsBottom.Items.Add("Bottom")
tspBottom.Join(tsBottom)

' Create the "Right" ToolStrip control and add
' to the corresponding ToolStripPanel.
Dim tsRight As New ToolStrip()
tsRight.Items.Add("Right")
tspRight.Join(tsRight)

' Create the "Left" ToolStrip control and add
' to the corresponding ToolStripPanel.
Dim tsLeft As New ToolStrip()
tsLeft.Items.Add("Left")
tspLeft.Join(tsLeft)

こちらもご覧ください

適用対象

Join(ToolStrip, Point)

指定した場所にあるToolStripPanelに、指定したToolStripを追加します。

public:
 void Join(System::Windows::Forms::ToolStrip ^ toolStripToDrag, System::Drawing::Point location);
public void Join(System.Windows.Forms.ToolStrip toolStripToDrag, System.Drawing.Point location);
member this.Join : System.Windows.Forms.ToolStrip * System.Drawing.Point -> unit
Public Sub Join (toolStripToDrag As ToolStrip, location As Point)

パラメーター

toolStripToDrag
ToolStrip

ToolStripに追加するToolStripPanel

location
Point

ToolStripの新しい位置の x クライアント座標と y クライアント座標をピクセル単位で表すPoint値。

適用対象

Join(ToolStrip, Int32)

指定した ToolStrip を、指定した行の ToolStripPanel に追加します。

public:
 void Join(System::Windows::Forms::ToolStrip ^ toolStripToDrag, int row);
public void Join(System.Windows.Forms.ToolStrip toolStripToDrag, int row);
member this.Join : System.Windows.Forms.ToolStrip * int -> unit
Public Sub Join (toolStripToDrag As ToolStrip, row As Integer)

パラメーター

toolStripToDrag
ToolStrip

ToolStripに追加するToolStripPanel

row
Int32

ToolStripが追加されるToolStripPanelRowを表すInt32

例外

row パラメーターが 0 未満です。

適用対象

Join(ToolStrip, Int32, Int32)

指定した座標のToolStripPanelに、指定したToolStripを追加します。

public:
 void Join(System::Windows::Forms::ToolStrip ^ toolStripToDrag, int x, int y);
public void Join(System.Windows.Forms.ToolStrip toolStripToDrag, int x, int y);
member this.Join : System.Windows.Forms.ToolStrip * int * int -> unit
Public Sub Join (toolStripToDrag As ToolStrip, x As Integer, y As Integer)

パラメーター

toolStripToDrag
ToolStrip

ToolStripに追加するToolStripPanel

x
Int32

水平方向のクライアント座標 (ピクセル単位)。

y
Int32

垂直方向のクライアント座標 (ピクセル単位)。

適用対象