ToolStripPanel.Join ToolStripPanel.Join ToolStripPanel.Join ToolStripPanel.Join Method

定義

ToolStripToolStripPanel に追加します。Adds a ToolStrip to a ToolStripPanel.

オーバーロード

Join(ToolStrip) Join(ToolStrip) Join(ToolStrip) Join(ToolStrip)

指定した ToolStripToolStripPanel に追加します。Adds the specified ToolStrip to a ToolStripPanel.

Join(ToolStrip, Point) Join(ToolStrip, Point) Join(ToolStrip, Point) Join(ToolStrip, Point)

ToolStrip 内の指定した位置に、指定した ToolStripPanel を追加します。Adds the specified ToolStrip to a ToolStripPanel at the specified location.

Join(ToolStrip, Int32) Join(ToolStrip, Int32) Join(ToolStrip, Int32) Join(ToolStrip, Int32)

指定した ToolStrip を、ToolStripPanel の指定した行に追加します。Adds the specified ToolStrip to a ToolStripPanel in the specified row.

Join(ToolStrip, Int32, Int32) Join(ToolStrip, Int32, Int32) Join(ToolStrip, Int32, Int32) Join(ToolStrip, Int32, Int32)

ToolStrip 内の指定した座標に、指定した ToolStripPanel を追加します。Adds the specified ToolStrip to a ToolStripPanel at the specified coordinates.

Join(ToolStrip) Join(ToolStrip) Join(ToolStrip) Join(ToolStrip)

指定した ToolStripToolStripPanel に追加します。Adds the specified ToolStrip to a ToolStripPanel.

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 ToolStrip ToolStrip

ToolStrip に追加する ToolStripPanelThe ToolStrip to add to the ToolStripPanel.

Joinコンストラクターの使用例を次のコード例に示します。The following code example demonstrates the use of the Join constructor. この例は、 ToolStripPanelクラスの概要で使用できるより大きな例の一部です。This example is part of a larger example available in the ToolStripPanel class overview.

// 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) Join(ToolStrip, Point) Join(ToolStrip, Point) Join(ToolStrip, Point)

ToolStrip 内の指定した位置に、指定した ToolStripPanel を追加します。Adds the specified ToolStrip to a ToolStripPanel at the specified location.

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 ToolStrip ToolStrip

ToolStrip に追加する ToolStripPanelThe ToolStrip to add to the ToolStripPanel.

location
Point Point Point Point

Point の新しい位置のクライアント座標における x 座標 および y 座標をピクセル単位で表す ToolStrip 値。A Point value representing the x- and y-client coordinates, in pixels, of the new location for the ToolStrip.

Join(ToolStrip, Int32) Join(ToolStrip, Int32) Join(ToolStrip, Int32) Join(ToolStrip, Int32)

指定した ToolStrip を、ToolStripPanel の指定した行に追加します。Adds the specified ToolStrip to a ToolStripPanel in the specified row.

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 ToolStrip ToolStrip

ToolStrip に追加する ToolStripPanelThe ToolStrip to add to the ToolStripPanel.

row
Int32 Int32 Int32 Int32

Int32 を追加する ToolStripPanelRow を表す ToolStripAn Int32 representing the ToolStripPanelRow to which the ToolStrip is added.

例外

row パラメーターが 0 未満です。The row parameter is less than zero (0).

Join(ToolStrip, Int32, Int32) Join(ToolStrip, Int32, Int32) Join(ToolStrip, Int32, Int32) Join(ToolStrip, Int32, Int32)

ToolStrip 内の指定した座標に、指定した ToolStripPanel を追加します。Adds the specified ToolStrip to a ToolStripPanel at the specified coordinates.

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 ToolStrip ToolStrip

ToolStrip に追加する ToolStripPanelThe ToolStrip to add to the ToolStripPanel.

x
Int32 Int32 Int32 Int32

水平方向のクライアント座標 (ピクセル単位)。The horizontal client coordinate, in pixels.

y
Int32 Int32 Int32 Int32

垂直方向のクライアント座標 (ピクセル単位)。The vertical client coordinate, in pixels.

適用対象