System.Windows.Forms.Design.ParentControlDesigner.CreateToolCore Method

Provides core functionality for all the ParentControlDesigner.CreateTool(System.Drawing.Design.ToolboxItem) methods.

Syntax

protected virtual System.ComponentModel.IComponent[] CreateToolCore (System.Drawing.Design.ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)

Parameters

tool
The System.Drawing.Design.ToolboxItem to create a component from.
x
The horizontal position, in design-time view coordinates, of the location of the left edge of the tool, if a size is specified; the horizontal position of the center of the tool, if no size is specified.
y
The vertical position, in design-time view coordinates, of the location of the top edge of the tool, if a size is specified; the vertical position of the center of the tool, if no size is specified.
width
The width of the tool. This parameter is ignored if the hasSize parameter is set to false.
height
The height of the tool. This parameter is ignored if the hasSize parameter is set to false.
hasLocation
true if a location for the component is specified; false if the component is to be positioned in the center of the currently selected control.
hasSize
true if a size for the component is specified; false if the default height and width values for the component are to be used.

Returns

An array of components created from the tool.

Remarks

This is the only erload:System.Windows.Forms.Design.ParentControlDesigner.CreateTool method that can be overridden.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0