Creates a component or control from the specified tool and adds it to the current design document at the specified location.
- tool
- The System.Drawing.Design.ToolboxItem to create a component from.
- location
- The System.Drawing.Point, in design-time view screen coordinates, at which to center the component.
The new component or control is positioned around the location specified by the location parameter. This method uses the default size for the tool's component, if the component has a default size.
To specify a location and size for the component or control, use the appropriate overloaded ParentControlDesigner.CreateTool(System.Drawing.Design.ToolboxItem) method.