ParentControlDesigner.CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) ParentControlDesigner.CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) ParentControlDesigner.CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) ParentControlDesigner.CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) Method

Definition

Provides core functionality for all the CreateTool(ToolboxItem) methods.

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);
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()

Parameters

tool
ToolboxItem ToolboxItem ToolboxItem ToolboxItem

The ToolboxItem to create a component from.

x
Int32 Int32 Int32 Int32

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
Int32 Int32 Int32 Int32

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
Int32 Int32 Int32 Int32

The width of the tool. This parameter is ignored if the hasSize parameter is set to false.

height
Int32 Int32 Int32 Int32

The height of the tool. This parameter is ignored if the hasSize parameter is set to false.

hasLocation
Boolean Boolean Boolean Boolean

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
Boolean Boolean Boolean Boolean

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 CreateTool method that can be overridden.

Applies to

See Also