ToolStripPanel.Join 메서드

정의

에 a ToolStripToolStripPanel추가합니다.

오버로드

Name Description
Join(ToolStrip)

에 지정된 값을 ToolStripToolStripPanel추가합니다.

Join(ToolStrip, Point)

지정된 위치에 지정된 ToolStripToolStripPanel 위치를 추가합니다.

Join(ToolStrip, Int32)

지정된 ToolStrip 행의 한 ToolStripPanel 행에 지정된 값을 추가합니다.

Join(ToolStrip, Int32, Int32)

지정된 ToolStripToolStripPanel 좌표에 지정된 좌표를 추가합니다.

Join(ToolStrip)

Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs

에 지정된 값을 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)

추가 정보

  • 방법: ToolStripPanels 결합하기

적용 대상

Join(ToolStrip, Point)

Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs

지정된 위치에 지정된 ToolStripToolStripPanel 위치를 추가합니다.

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

Point 에 대한 새 위치의 x-및 y-클라이언트 좌표(픽셀)를 ToolStrip나타내는 값입니다.

적용 대상

Join(ToolStrip, Int32)

Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs

지정된 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

Int32 추가되는 ToolStripPanelRowToolStrip 항목을 나타내는 값입니다.

예외

row 매개 변수가 0보다 작습니다.

적용 대상

Join(ToolStrip, Int32, Int32)

Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs
Source:
ToolStripPanel.cs

지정된 ToolStripToolStripPanel 좌표에 지정된 좌표를 추가합니다.

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

세로 클라이언트 좌표(픽셀)입니다.

적용 대상