Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

A 2-element constraint Two Element Constraint shape iconapplies to two elements, such as two classes or two associations. The constraint is shown as a dashed arrow from one element to the other with the constraint string label in braces ({  }).

An OR constraint OR Constraint shape iconindicates that any instance of a class may participate in only one association at one time. The constraint is shown as a dashed line connecting two or more associations, which must have a class in common. The line is labeled by the constraint string, OR, in braces ({  }).

Name a 2-element Constraint or OR Constraint shape and add a stereotype and other property values

Double-click the shape.

Add a stereotype to a 2-element Constraint or OR Constraint shape

Double-click the shape to which you want to add the Stereotype.

Hide the stereotype on a 2-element Constraint or OR Constraint shape

Right-click the shape, click Shape Display Options, and then clear Stereotype.

Constraint shape

Create a UML component diagram

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×