ParentControlDesigner.CreateTool Metod

Definition

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet.

Överlagringar

Name Description
CreateTool(ToolboxItem, Point)

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet på den angivna platsen.

CreateTool(ToolboxItem, Rectangle)

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet inom gränserna för den angivna rektangeln.

CreateTool(ToolboxItem)

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet.

CreateTool(ToolboxItem, Point)

Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs

Viktigt!

Detta API uppfyller inte CLS.

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet på den angivna platsen.

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)

Parametrar

tool
ToolboxItem

Att ToolboxItem skapa en komponent från.

location
Point

Skärmkoordinaterna Pointför , i designtidsvyn, där komponenten ska centreras.

Attribut

Kommentarer

Den nya komponenten eller kontrollen placeras runt den plats som anges av parametern location . Den här metoden använder standardstorleken för verktygets komponent, om komponenten har en standardstorlek.

Om du vill ange en plats och storlek för komponenten eller kontrollen använder du lämplig överlagrade CreateTool metod.

Se även

Gäller för

CreateTool(ToolboxItem, Rectangle)

Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs

Viktigt!

Detta API uppfyller inte CLS.

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet inom gränserna för den angivna rektangeln.

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)

Parametrar

tool
ToolboxItem

Att ToolboxItem skapa en komponent från.

bounds
Rectangle

En Rectangle som anger platsen och storleken för komponenten som skapats från verktyget. Värdena XY och Rectangle anger skärmkoordinaterna för designtidsvyn i komponentens övre vänstra hörn.

Attribut

Kommentarer

Den nya komponenten eller kontrollen placeras i det övre vänstra hörnet på den plats som anges av parameterns XY värden ochbounds. Storleken på den nya komponenten eller kontrollen anges till de värden som anges av parameterns HeightWidth egenskaper och bounds .

Se även

Gäller för

CreateTool(ToolboxItem)

Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs
Källa:
ParentControlDesigner.cs

Viktigt!

Detta API uppfyller inte CLS.

Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet.

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)

Parametrar

tool
ToolboxItem

Att ToolboxItem skapa en komponent från.

Attribut

Kommentarer

Den nya komponenten eller kontrollen placeras i mitten av den markerade kontrollen. Den här metoden använder standardstorleken för verktyget, om verktyget har en angiven standardstorlek.

Om du vill ange en plats eller plats och storlek för komponenten eller kontrollen använder du någon av de andra överlagrade CreateTool metoderna.

Se även

Gäller för