#760 – Adding New Class Members from a Class Diagram
January 17, 2013 Leave a comment
In addition to adding new types from a class diagram within Visual Studio, you can also add members to existing types.
In the class diagram, you right-click the top area of the class and then click Add in the popup menu. You’ll see a list of the different class members that you can add.
For example, we can add a RollOver method to the Dog class. After selecting Method from the menu, a new method shows up in the list of methods for the class.
After you name the new method, different attributes of the method will show up in the Properties window on the right side of the Visual Studio workspace. You can then make changes to the method by changing its properties.
You can of course go view or edit the new method in the code editor window.