Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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.
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.)
In the Properties section of the WFC Component Builder, click Add.
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 In the WFC Component Builder, click OK.
The WFC Component Builder adds the
getCheckedandsetCheckedmethods 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.