Share via


How to: View Type Members

In Class Designer, you can show or hide the members within their compartments in the type shapes on the class diagram. Hiding members within their compartments can help simplify your view of the diagram or to emphasize certain aspects of the types that appear on the diagram.

Note

The class diagram displays members in compartments by default. When all members within a compartment are hidden, the compartment becomes hidden. Hiding or showing compartments and their members does not affect the code. For more information, see How to: View Compartments in Type Shapes.

To show hidden members in a type shape

  • On the class diagram, right-click the compartment name, and choose Show All Members.

    Hidden members appear in the compartment.

You can also show a type member using the Class Details window by clearing the Hide check box for the member. For more information, see How to: Open the Class Details Window.

To hide a member in a type shape

  • On the class diagram, right-click the member name, and choose Hide.

    The member is no longer visible in the compartment.

You can also hide a member using the Class Details window by selecting the Hide check box for the member. For more information, see How to: Open the Class Details Window.

See Also

Tasks

How to: View Type Details

How to: Group Type Members

Other Resources

Viewing Types and Relationships on Class Diagrams