次の方法で共有


How to: Modify Class and Class Member Attributes

After you create classes, you can add or edit their descriptions using the Class Designer or Class Browser. By using the Class Browser, you do not need to open each class. You can also modify attributes for custom properties and methods.

To modify a class description

  1. Open the class in the Class Designer.

    For more information about opening classes, see How to: Modify Classes.

    When the class opens in the Class Designer, the Class menu appears.

  2. On the Class menu, choose Class Info.

  3. In the Class Info dialog box, choose the Class tab.

  4. Make changes to the description in the Description box.

  5. When you are finished making changes, click OK.

To modify a class description without opening each class

  1. Open the class library in the Class Browser.

    For more information about opening class libraries, see How to: Open Class Libraries.

  2. In the class list of the Class Browser, select the class you want to change the description for.

  3. In bottom-left corner of the Class Browser, type the text for the class description.

If no member is selected in the member list of the Class Browser, the bottom-right corner of the Class Browser displays the class and timestamp information for the selected class.

Modifying Custom Property and Method Attributes

You can edit the attributes, such as the visibility level and description, for custom properties and methods using the Visual FoxPro IDE, the Project Manager when the class is part of a project, or in the Class Browser.

Warning

Use caution when editing attributes, such as the visibility level, for custom properties and methods. Changes you make might affect code that references those properties and methods.

To modify attributes for a custom property or method

  1. Open the class in the Class Designer.

    For more information about opening classes, see How to: Modify Classes.

    When the class opens in the Class Designer, the Class menu appears.

  2. On the Class menu, choose Edit Property/Method.

  3. When you are finished making changes, click Apply.

You can also right-click the property or method in the properties list of the Properties window and choose Edit Property/Method.

To modify attributes for a custom property and method without opening each class

  1. Open the class library in the Class Browser.

    For more information about opening class libraries,, see How to: Open Class Libraries.

  2. In the member list of the Class Browser, select a method or property.

  3. In the bottom-right corner of the Class Browser, type the text for the property or method description.

Note

For member properties and methods, the bottom-right corner displays a description you can edit. However, for object members and instances of classes, the bottom-right corner displays read-only information for the class and base class of the object member, including the visibility level, member names, and property values.

See Also

Tasks

How to: Add Code to Methods and Events

Concepts

Working with Classes in Visual FoxPro