Creating and Configuring Type Members (Class Designer)
You can add type members and configure them using the Class Details window.
After creating types in a class diagram, you can add members and configure them. For information about adding members, see How to: Create a Member (Class Designer). For information about modifying (configuring) members, see How to: Modify Type Members (Class Designer).
Each type that can be represented on a class diagram can contain specific kinds of members. The following table describes which types can contain which members:
Type |
Members it can contain |
---|---|
Class |
method, property (for C# and Visual Basic), field, event (for C# and Visual Basic), constructor (method), destructor (method), constant |
Enum |
member |
Interface |
method, property, event (for C# and Visual Basic) |
Abstract Class |
method, property (for C# and Visual Basic), field, event (for C# and Visual Basic), constructor (method), destructor (method), constant |
Structure (Struct in C#) |
method, property (for C# and Visual Basic) field, event (for C# and Visual Basic), constructor (method), constant |
Delegate |
Parameter |
Module (VB Only) |
method, property, field, event, constructor, constant |
Note
Auto-implemented properties (C# only) make property declaration more concise when no additional logic is required in the property's get and set accessors. To display the full signature, from the Class Diagram menu, select Change Members Format, and then click Display Full Signature. For more information about auto-implemented properties, see Auto-Implemented Properties (C# Programming Guide).
The following topics describe how to work with type members:
In This Section
How to: Modify Type Members (Class Designer)
Describes how to modify type members.
How to: Add Parameters to a Method (Class Designer)
Explains how to add a parameter to a method.
How to: Open the Class Details Window (Class Designer)
Explains how to open the Class Details window.
Keyboard Shortcuts for the Class Details Window (Class Designer)
Describes keyboard shortcuts for the Class Details window.
Class Details Window Usage Notes (Class Designer)
Provides tips for using the Class Details window.
Display of Read-Only Information (Class Designer)
Describes how read-only information is displayed in the class diagram.