Creates a component from the specified toolbox item, adds the component to the current document, and displays a representation for the component in the component tray.
- tool
- The System.Drawing.Design.ToolboxItem to create a component from.
This method checks the item for an appropriate System.ComponentModel.DesignTimeVisibleAttribute before attempting to create the component and add it to the component tray.