procedure GetPropertyList ( AnObject: TComponent; List: TStrings);
var
PropertyIndex,
PropertyCount : Integer;
PropList : TPropList;
begin
PropertyCount := GetPropList ( AnObject.ClassInfo, tkAny,
@PropList) ;
// the second parameter could be also tkProperties for only get the
// property names or tkMethods to get the methods names.
for PropertyIndex := 0 to PropertyCount -1 do
List.Add ( PropList[PropertyIndex].PropType^.Name );
end;{GetPropertyList}