You can change the default for visualizing files or folders and
code elements in C# modeling diagrams when you extract elements from C# files
and .NET assemblies. You can also control the visualization of relationships
to .NET assembly elements and types.
Before you begin
Note: These settings affect only new classifiers that
you add to a class diagram and do not affect any existing classifiers.
About this task
To change the default for extracting C# and .NET assembly modeling
elements:
Procedure
- Click .
- In the Preferences window, expand Modeling and
click .NET Modeling.
- Set options for visualizing files and folders. Under When
visualizing a C#/.NET Assembly file/folder extract, click one of
the following:
| Option |
Description |
| Only the file/folder element |
Default. This option visualizes files or folders, but hides their
declared elements. |
| Only the elements declared in the file/folder |
This option visualizes declared elements, but hides the files or folders
that declare the elements. |
| Both the file and the elements declared in the
file |
This option visualizes both the files or
folders and their declared elements. |
- Set options for visualizing elements. Under When visualizing
an element of a C#/.NET Assembly extract, click one of the following:
| Option |
Description |
| Only the type element |
Default.
This option visualizes types, but hides the declared elements in the type. |
| Only the elements declared within the type |
This option visualizes declared elements, but hides the type elements. |
| Both the type and the elements declared in the
type |
This option visualizes both the types and
their declared elements. |
- Set options for visualizing elements from a C# file. Under When
visualizing a C# type, click one of the following:
| Option |
Description |
| Ignore relations to System.Object Class |
Default. This option ignores all relationships to System.Object class. |
| Ignore relations to .NET Assembly types |
This option ignores all relationships to .NET assembly types. |
| Visualize relations to .NET Assembly types |
This option visualizes all relationships to all .NET assembly types. |
- Click OK.