Share via


ParentControlDesigner.CreateTool 메서드

정의

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서에 추가합니다.

오버로드

CreateTool(ToolboxItem, Point)

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서의 지정한 위치에 추가합니다.

CreateTool(ToolboxItem, Rectangle)

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서의 지정한 사각형 내에 추가합니다.

CreateTool(ToolboxItem)

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서에 추가합니다.

CreateTool(ToolboxItem, Point)

중요

이 API는 CLS 규격이 아닙니다.

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서의 지정한 위치에 추가합니다.

protected:
 void CreateTool(System::Drawing::Design::ToolboxItem ^ tool, System::Drawing::Point location);
protected void CreateTool (System.Drawing.Design.ToolboxItem tool, System.Drawing.Point location);
[System.CLSCompliant(false)]
protected void CreateTool (System.Drawing.Design.ToolboxItem tool, System.Drawing.Point location);
member this.CreateTool : System.Drawing.Design.ToolboxItem * System.Drawing.Point -> unit
[<System.CLSCompliant(false)>]
member this.CreateTool : System.Drawing.Design.ToolboxItem * System.Drawing.Point -> unit
Protected Sub CreateTool (tool As ToolboxItem, location As Point)

매개 변수

tool
ToolboxItem

구성 요소를 만들 ToolboxItem입니다.

location
Point

구성 요소를 중앙에 위치시킬 디자인 타임 보기 화면 좌표 상의 Point입니다.

특성

설명

새 구성 요소 또는 컨트롤은 매개 변수로 지정된 위치 주위에 배치됩니다 location . 이 메서드는 구성 요소의 기본 크기가 있는 경우 도구의 구성 요소에 대한 기본 크기를 사용합니다.

구성 요소 또는 컨트롤의 위치와 크기를 지정하려면 적절한 오버로드된 메서드를 CreateTool 사용합니다.

추가 정보

적용 대상

CreateTool(ToolboxItem, Rectangle)

중요

이 API는 CLS 규격이 아닙니다.

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서의 지정한 사각형 내에 추가합니다.

protected:
 void CreateTool(System::Drawing::Design::ToolboxItem ^ tool, System::Drawing::Rectangle bounds);
protected void CreateTool (System.Drawing.Design.ToolboxItem tool, System.Drawing.Rectangle bounds);
[System.CLSCompliant(false)]
protected void CreateTool (System.Drawing.Design.ToolboxItem tool, System.Drawing.Rectangle bounds);
member this.CreateTool : System.Drawing.Design.ToolboxItem * System.Drawing.Rectangle -> unit
[<System.CLSCompliant(false)>]
member this.CreateTool : System.Drawing.Design.ToolboxItem * System.Drawing.Rectangle -> unit
Protected Sub CreateTool (tool As ToolboxItem, bounds As Rectangle)

매개 변수

tool
ToolboxItem

구성 요소를 만들 ToolboxItem입니다.

bounds
Rectangle

도구에서 만든 구성 요소의 위치 및 크기를 나타내는 Rectangle. XYRectangle 값은 디자인 타임 보기 화면 상에 나타나는 구성 요소의 왼쪽 위의 좌표를 나타냅니다.

특성

설명

새 구성 요소 또는 컨트롤은 매개 변수의 및 Y 값으로 지정된 위치에 왼쪽 위 모서리로 bounds 배치됩니다X. 새 구성 요소 또는 컨트롤의 크기는 매개 변수의 boundsWidth 속성에 지정된 값으로 Height 설정됩니다.

추가 정보

적용 대상

CreateTool(ToolboxItem)

중요

이 API는 CLS 규격이 아닙니다.

지정한 도구에서 구성 요소나 컨트롤을 만들어 현재 디자인 문서에 추가합니다.

protected:
 void CreateTool(System::Drawing::Design::ToolboxItem ^ tool);
protected void CreateTool (System.Drawing.Design.ToolboxItem tool);
[System.CLSCompliant(false)]
protected void CreateTool (System.Drawing.Design.ToolboxItem tool);
member this.CreateTool : System.Drawing.Design.ToolboxItem -> unit
[<System.CLSCompliant(false)>]
member this.CreateTool : System.Drawing.Design.ToolboxItem -> unit
Protected Sub CreateTool (tool As ToolboxItem)

매개 변수

tool
ToolboxItem

구성 요소를 만들 ToolboxItem입니다.

특성

설명

새 구성 요소 또는 컨트롤은 현재 선택한 컨트롤의 가운데에 배치됩니다. 도구에 기본 크기가 지정된 경우 이 메서드는 도구의 기본 크기를 사용합니다.

구성 요소 또는 컨트롤의 위치 또는 위치 및 크기를 지정하려면 오버로드된 CreateTool 다른 메서드 중 하나를 사용합니다.

추가 정보

적용 대상