ParentControlDesigner.CreateToolCore Método

Definición

Importante

Esta API no es conforme a CLS.

Proporciona funcionalidad básica para todos los CreateTool(ToolboxItem) métodos.

protected:
 virtual cli::array <System::ComponentModel::IComponent ^> ^ CreateToolCore(System::Drawing::Design::ToolboxItem ^ tool, int x, int y, int width, int height, bool hasLocation, bool hasSize);
protected virtual System.ComponentModel.IComponent[] CreateToolCore(System.Drawing.Design.ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize);
[System.CLSCompliant(false)]
protected virtual System.ComponentModel.IComponent[] CreateToolCore(System.Drawing.Design.ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize);
abstract member CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
override this.CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
[<System.CLSCompliant(false)>]
abstract member CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
override this.CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
Protected Overridable Function CreateToolCore (tool As ToolboxItem, x As Integer, y As Integer, width As Integer, height As Integer, hasLocation As Boolean, hasSize As Boolean) As IComponent()

Parámetros

tool
ToolboxItem

a partir del ToolboxItem que se va a crear un componente.

x
Int32

Posición horizontal, en coordenadas de vista en tiempo de diseño, de la ubicación del borde izquierdo de la herramienta, si se especifica un tamaño; la posición horizontal del centro de la herramienta, si no se especifica ningún tamaño.

y
Int32

Posición vertical, en coordenadas de vista en tiempo de diseño, de la ubicación del borde superior de la herramienta, si se especifica un tamaño; la posición vertical del centro de la herramienta, si no se especifica ningún tamaño.

width
Int32

Ancho de la herramienta. Este parámetro se omite si el hasSize parámetro está establecido falseen .

height
Int32

Alto de la herramienta. Este parámetro se omite si el hasSize parámetro está establecido falseen .

hasLocation
Boolean

true es si se especifica una ubicación para el componente; false si el componente se va a colocar en el centro del control seleccionado actualmente.

hasSize
Boolean

true es si se especifica un tamaño para el componente; false si se van a usar los valores predeterminados de alto y ancho para el componente.

Devoluciones

Matriz de componentes creados a partir de la herramienta.

Atributos

Comentarios

Este es el único CreateTool método que se puede invalidar.

Se aplica a

Consulte también