Add Property (C++)
Go Up to View Menu
Adds a property to a class in the C++ Class Explorer.
On the C++ Class Explorer Window, invoke the Add Property dialog box from either:
Note: The Add Property context menu command and the Add a new property to this class toolbar button are enabled only for elements that are declared in a C++ managed unit. To create a C++ unit, choose either:
- File > New > Unit - C++Builder
- File > New > Form - C++Builder
C++ managed units differ from ordinary C++ source files in that the header (.h) and implementation (.cpp) files are grouped together. For a C++ managed unit, the Code Editor displays a tab for the .cpp file and a tab for the .h file along the bottom of the window.
You cannot add fields, methods, or properties to VCL or FireMonkey elements using the C++ Class Explorer.
Item | Description |
---|---|
Name |
Specifies the name of the property. |
Type |
Specifies the type of the property. You can select one of the predefined types from the combo box or you can enter another existing type. |
Visibility |
Specifies the visibility of the property being created. Select from: |
Read options |
|
Write options |
|