Creating a component part (IDL code)
You can create a Component Part through an Internal Component Diagram, or from a Component.
Note that when you create a Component Part on a Component Part, the new Component Part is created as a child of the other Component Part's type (Component).
To create a component part through an internal component diagram:
1. On the diagram's tab, click the Component Part button.
2. On the diagram, click the Component or Component Part on which you want to create the Component Part.
3. From the Type Selector dialog, select or create a Component to use as a type:
To use an existing type: select the Select an Existing Type option, and then select the Component you want to use in the Existing Type browser.
To create a new type: select the Create a New Type option, and then in the Name box type the name of the Component that will be created.
4. Click OK.
5. Type the name of the Component Part, and then press the Enter key.
Alternatively,
1. In the Packages pane, locate the Component that is to be the type of the Component Part.
2. Drag the Component from the Packages pane to the diagram, dropping the Component on the Component or Component Part on which you want to create the Component Part.
3. Open the Component Part's property pages.
4. Click the General tab.
5. In the Name box, type the name of the Component Part.
To create a component part from a component:
1. In the Packages pane, locate the Component that is to own the Component Part.
2. Right-click the Component, point to New, and then click Component Part.
3. From the Type Selector dialog, select or create a Component to use as a type:
To use an existing type: select the Select an Existing Type option, and then select the Component you want to use in the Existing Type browser.
To create a new type: select the Create a New Type option, and then in the Name box type the name of the Component that will be created.
4. Click OK.
5. Type the name of the Component Part, and then press the Enter key.