RAD Studio (Common)
ContentsIndex
PreviousUpNext
Working With Class Diagram Members

Provides how-to information on working with sclass diagram members.

Name 
Description 
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. 
You can collapse or expand compartments for the different members of class, interface, namespace, enum, and structure (C++ projects only) elements. By default, the compartments for these elements are displayed on the diagram as a straight line. You can use the Options dialog window to set viewing preferences for compartment controls. Adding compartment controls is particularly useful when you have large container elements with content that does not need to be visible at all times. 
This topic explains how to change the appearance of interfaces. 
You can create as many constructors in a class as needed.
In design projects, a constructor is created as an operation with the <<constructor>> stereotype.
In implementation projects, each new constructor is created with its unique set of parameters. In addition to creating parameters automatically, you can define the custom set of parameters, using the Object Inspector.
Tip: You can move, copy and paste constructors and destructors between the container classes same way as the other members.
 
This topic applies to implementation projects only.
In the source code, it is possible to declare several fields in one line. This notation is represented in diagram as a number of separate entries in the Fields section if a class icon. However, you can rename the fields, change modifiers, set initial values and so on, all modifications being applied to the respective field in the diagram icon. Also you can copy and move such fields in diagram (using context menu commands or drag-and-drop), and the pasted field appears in the target container separately. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!