Adding a Custom Property with the WFC Component Builder

Use the WFC Component Builder to add and delete custom properties from your controls. By using the WFC Component Builder, you can get a head start in defining properties for your controls.

To add a property using the WFC Component Builder

  1. In Project Explorer, right-click your control's source file, and then click View Code.

    The Text editor opens and displays the source for your control.

  2. In Class Outline, right-click your control's class name and click WFC Component Builder. (To display Class Outline, on the View menu, point to Other Windows, and then click Document Outline.)

  3. In the Properties section of the WFC Component Builder, click Add.

  4. In the Add WFC Property dialog box, define the checked property for the GroupCheck control according to the following table, and then click OK.
    Field Value
    Name checked
    Data Type boolean
    Category Behavior
    Description Determines whether the control's check box is checked.
    Read-only Property unchecked
    Declare Member Variable unchecked

  5. In the WFC Component Builder, click OK.

    The WFC Component Builder adds the getChecked and setChecked methods to the code and a property definition to the control's ClassInfo class.

The next step is to add code to the getChecked and setChecked methods.