ToolStripPanel.Join Methode

Definition

Fügt einen ToolStrip zu einem ToolStripPanel.

Überlädt

Name Beschreibung
Join(ToolStrip)

Fügt den angegebenen ToolStrip Wert zu einem ToolStripPanel.

Join(ToolStrip, Point)

Fügt den angegebenen ToolStrip Wert an ToolStripPanel der angegebenen Position hinzu.

Join(ToolStrip, Int32)

Fügt den angegebenen ToolStrip Wert zu einer ToolStripPanel in der angegebenen Zeile hinzu.

Join(ToolStrip, Int32, Int32)

Fügt den angegebenen ToolStrip Wert zu den ToolStripPanel angegebenen Koordinaten hinzu.

Join(ToolStrip)

Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs

Fügt den angegebenen ToolStrip Wert zu einem 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)

Parameter

toolStripToDrag
ToolStrip

Der ToolStrip zum Hinzufügen zu der ToolStripPanel.

Beispiele

Im folgenden Codebeispiel wird die Verwendung des Join Konstruktors veranschaulicht. Dieses Beispiel ist Teil eines größeren Beispiels, das in der ToolStripPanel Klassenübersicht verfügbar ist.

// 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)

Weitere Informationen

Gilt für:

Join(ToolStrip, Point)

Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs

Fügt den angegebenen ToolStrip Wert an ToolStripPanel der angegebenen Position hinzu.

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)

Parameter

toolStripToDrag
ToolStrip

Der ToolStrip zum Hinzufügen zu der ToolStripPanel.

location
Point

Ein Point Wert, der die x- und y-Clientkoordinaten in Pixeln der neuen Position für die ToolStrip.

Gilt für:

Join(ToolStrip, Int32)

Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs

Fügt den angegebenen ToolStrip Wert zu einer ToolStripPanel in der angegebenen Zeile hinzu.

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)

Parameter

toolStripToDrag
ToolStrip

Der ToolStrip zum Hinzufügen zu der ToolStripPanel.

row
Int32

Ein Int32 Wert, der der ToolStripPanelRowToolStrip hinzugefügt wird.

Ausnahmen

Der row Parameter ist kleiner als Null (0).

Gilt für:

Join(ToolStrip, Int32, Int32)

Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs
Quelle:
ToolStripPanel.cs

Fügt den angegebenen ToolStrip Wert zu den ToolStripPanel angegebenen Koordinaten hinzu.

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)

Parameter

toolStripToDrag
ToolStrip

Der ToolStrip zum Hinzufügen zu der ToolStripPanel.

x
Int32

Die horizontale Clientkoordinate in Pixel.

y
Int32

Die vertikale Clientkoordinate in Pixel.

Gilt für: