Assigning an Element Stereotype

From RAD Studio
Jump to: navigation, search

Go Up to Editing Diagrams

Different stereotypes can be assigned to classes, links, packages, link ends, and other UML elements. Usually, a stereotyped element is rendered by placing the stereotype name above the element's name and enclosing the stereotype name in guillemets, as in «type».

You can assign a stereotype by using the in-place editor (in the Diagram view) or by using the Stereotype property in the Object Inspector (in the Diagram and Model views).

To assign a stereotype by using the in-place editor

  1. In the Diagram view, double-click the stereotype name to activate the in-place editor.
  2. Enter the new name.
  3. Press ENTER.

To assign a stereotype by using the Object Inspector

  1. In the Diagram view or Model view, select a UML element (for example a class), which stereotype you want to change.
  2. In the Object Inspector, select the Stereotype property.
  3. In the Stereotype field, enter the desired stereotype name or click the drop-down arrow to choose the desired stereotype name from the predefined stereotypes.
Result: In the Diagram view, the specified stereotype name appears in guillemets above the selected element's name (at the top of the class node).

See Also