To change a method to a read or write property
Place the caret at the name of a method in the editor, in the
File Structurewindow, in Class Viewor in Object Browser.
Do one of the following:
On the main menu, choose
Refactor | Convert | Method to Property.
Ctrl+Shift+Rand click Convert Method to Property.
- On the main menu, choose
Convert Method to Propertydialog opens. Type a property name into the Property namebox or leave the default one:
Nextto change the method to a read or a write property. At the same time, all method calls will be substituted with the corresponding property accesses.