You can use the Add Property dialog box to add a property to a class in the Class Explorer.
Possible options are:
Item |
Description |
Property name |
Specifies the name of the property . |
Add to class |
Specifies the class to which you are adding the property. By default the currently selected class is prompted. You can, however, change this to any other available class selecting it from classes displayed in the drop-down list in the combo box. |
Type |
Specifies the type of the property. You can select one of the predefined types from the combo box or you can type in any other existing type. |
Visibility |
Specifies the visibility of the property being created. You can select one of the options specified in the Visibility group. |
Reader |
Specifies the name of the read specifier for the property being created. |
Writer |
Specifies the name of the write specifier for the property being created. |
Create |
When any of these check boxes is checked ON, then you can explicitly specify some name for the corresponding read/write access specifier and specified methods will be created. |
Create field |
When this check box is checked ON, then you can explicitly specify some field corresponding to this property and the specified field will be declared. Then this field is used within bodies of the property’s getter and setter methods. |
Reset |
Resets the default options. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|