OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You can use the GetProperty and SetProperty functions to query and modify the values of a Doc/View object's properties.
The GetProperty function lets you find out the value of a property. Its syntax is
GetProperty parameters
Parameter | Description |
index | Property index. |
dest | Used by GetProperty to contain the property data. |
textlen | Indicates the size of the memory array pointed to by dest. If textlen is 0, the property data is not returned; instead, GetProperty returns 0. Otherwise the data is returned in a textlen size buffer. |
The SetProperty function lets you set the value of a property. Its syntax is
SetProperty parameters
Parameter | Description |
index | Property index |
src | Contains the data to which the property is being set. src must be in the correct native format for the property. |
A derived class that duplicates property names should use the same behavior and data type for the duplicate properties as they had in the parent class.