How to inherit documentation for properties and events

Turn on documentation inheritance by checking the property "Inherit Property/Event Documentation" under Project->Settings->Main.

The property must be redeclared in the sub class for the documentation to be inherited. For example:

TMyClass = class(TObject);
private
  FMyProperty: integer;
protected
  {:Documentation for MyProperty}
  property MyProperty: integer read FMyProperty write FMyProperty;
end;

TMySubClass = class(TMyClass);
published
   property MyProperty; 
end;
In this example the documentation for MyProperty in TMyClass will also be included for MyProperty in TMySubClass.


HTML generated by Time2HELP
http://www.time2help.com