RAD Studio (Common)
Adding a Member to a Container

You can add members to class diagram elements (containers) by using the respective context menu for the diagram element in the Diagram or Model Views or available shortcut keys to add members to a class diagram container element.

To add a member to a container:

  1. Right-click the container (class, interface, and so on).
  2. Choose Add(Member_type).
    Tip: You can also use keyboard shortcuts to add fields and methods to a container allowing such members. Click CTRL+W
    (for fields) and CTRL+M (for methods, functions).
  3. You can edit the member using the in-place editor, Object Inspector, or source code editor.
Result: The new member is placed in the compartment of the container in the sort order for the elements in your diagrams. You can set the sort order in the Options dialog window.
Tip: If a container already has members, you can right-click the existing member to create an additional member using the context menu. You can also select the member, and press INSERT

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!