allProperties

allProperties(): PropertyColl;

The allProperties method of the Class class returns a reference to all properties of the class of the receiver.

The code fragment in the following example shows the use of the allProperties method.

// Go through the properties and find the ones that have text.
// Format the text and then write it.
vars
    propertyColl : PropertyColl;
    prop : Property;
begin
    propertyColl := class.allProperties;
    foreach prop in propertyColl do
        if prop.text <> null then
            write prop.name.toUpper & CrLf & prop.text & CrLf;
        endif;
    endforeach;
epilog
    delete propertyColl;
end;