ToolStripPanel.Join Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Lägger till en ToolStrip i en ToolStripPanel.
Överlagringar
| Name | Description |
|---|---|
| Join(ToolStrip) |
Lägger till den angivna ToolStrip i en ToolStripPanel. |
| Join(ToolStrip, Point) |
Lägger till den angivna ToolStrip till en ToolStripPanel på den angivna platsen. |
| Join(ToolStrip, Int32) |
Lägger till den angivna ToolStrip i en ToolStripPanel på den angivna raden. |
| Join(ToolStrip, Int32, Int32) |
Lägger till den angivna ToolStrip till en ToolStripPanel vid de angivna koordinaterna. |
Join(ToolStrip)
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
Lägger till den angivna ToolStrip i en 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)
Parametrar
- toolStripToDrag
- ToolStrip
Att ToolStrip lägga till i ToolStripPanel.
Exempel
Följande kodexempel visar hur konstruktorn används Join . Det här exemplet är en del av ett större exempel som är tillgängligt i klassöversikten 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)
Se även
Gäller för
Join(ToolStrip, Point)
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
Lägger till den angivna ToolStrip till en ToolStripPanel på den angivna platsen.
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)
Parametrar
- toolStripToDrag
- ToolStrip
Att ToolStrip lägga till i ToolStripPanel.
- location
- Point
Ett Point värde som representerar x- och y-klientkoordinaterna, i bildpunkter, för den nya platsen för ToolStrip.
Gäller för
Join(ToolStrip, Int32)
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
Lägger till den angivna ToolStrip i en ToolStripPanel på den angivna raden.
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)
Parametrar
- toolStripToDrag
- ToolStrip
Att ToolStrip lägga till i ToolStripPanel.
- row
- Int32
En Int32 som representerar i ToolStripPanelRow vilken ToolStrip läggs till.
Undantag
Parametern row är mindre än noll (0).
Gäller för
Join(ToolStrip, Int32, Int32)
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
- Källa:
- ToolStripPanel.cs
Lägger till den angivna ToolStrip till en ToolStripPanel vid de angivna koordinaterna.
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)
Parametrar
- toolStripToDrag
- ToolStrip
Att ToolStrip lägga till i ToolStripPanel.
- x
- Int32
Den vågräta klientkoordinaten i bildpunkter.
- y
- Int32
Den lodräta klientkoordinaten i bildpunkter.