Visual C# Express - Using the Class View
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Visual C# Express: Using the Class View |
The Class View displays the fields and methods for all classes in a project. To open this view, select Class View from the View menu. The view is divided into two sections. The upper section displays objects, while the lower section display sthe members of the currently selected object. Figure 14 below shows the class view for a default windows application.
The object pane
The upper section follows a hierarchical structure, positioning the project name (WindowsApplication1) as the root and including a series of nodes that represent the classes in the project. To expand a node selected in the tree, click its plus (+) sign or press the plus (+) key on the keypad. Similarly, to collapse a node selected in the tree, click its minus (-) sign or press the minus (-) key on the keypad. When you select a class in the upper pane, its members appear in the lower pane.
The member pane
In the diagram above, the class Form1 is selected, the members shown in the lower pane are those for which code exists within the project. Each member has an icon representing its type. A list of these icons can be found in the Intellisense section.
Figure 14: Visual C# Express - The Class View
Adding a class to a project
As with the solution explorer, right-click on the project that you wish to add the class to, select Add from the menu and the click on Class (as shown in Figure 15). The Add New Item menu will be displayed with the default name of class1.cs in the file name.
Figure 15: Visual C# Express - Adding a Class to a Project
MSDN references
|

