ParentControlDesigner.CreateTool 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 도구에서 구성 요소 또는 컨트롤을 만들고 현재 디자인 문서에 추가합니다.
오버로드
| Name | Description |
|---|---|
| CreateTool(ToolboxItem, Point) |
지정된 도구에서 구성 요소 또는 컨트롤을 만들고 지정된 위치에 있는 현재 디자인 문서에 추가합니다. |
| CreateTool(ToolboxItem, Rectangle) |
지정된 도구에서 구성 요소 또는 컨트롤을 만들고 지정된 사각형 범위 내의 현재 디자인 문서에 추가합니다. |
| CreateTool(ToolboxItem) |
지정된 도구에서 구성 요소 또는 컨트롤을 만들고 현재 디자인 문서에 추가합니다. |
CreateTool(ToolboxItem, Point)
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
Important
이 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 . 이 메서드는 구성 요소의 기본 크기인 경우 도구 구성 요소의 기본 크기를 사용합니다.
구성 요소 또는 컨트롤의 위치와 크기를 지정하려면 적절한 오버로드된 메서드를 CreateTool 사용합니다.
추가 정보
적용 대상
CreateTool(ToolboxItem, Rectangle)
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
Important
이 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 도구에서 만든 구성 요소의 위치와 크기를 나타내는 것입니다. 및 X 값은 Y 구성 요소의 Rectangle 왼쪽 위 모서리에 있는 디자인 타임 보기 화면 좌표를 나타냅니다.
- 특성
설명
새 구성 요소 또는 컨트롤은 매개 변수의 값과 X 지정한 위치에 왼쪽 위 모서리를 Ybounds 사용하여 배치됩니다. 새 구성 요소 또는 컨트롤의 크기는 매개 변수 및 Height 속성에 지정된 값으로 Widthbounds 설정됩니다.
추가 정보
적용 대상
CreateTool(ToolboxItem)
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
- Source:
- ParentControlDesigner.cs
Important
이 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 다른 메서드 중 하나를 사용합니다.