[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TCollection.GetAttrCount

Returns the count of attributes associated with each item.

## Declaration

`protected function TCollection.GetAttrCount: Integer; dynamic;`

## Description

GetAttrCount returns 0 in the TCollection implementation. It can be used to determine the number of attributes associated with each collection item. Descendent objects should override this method to return the number of attributes.

This method is provided for compatibility with Delphi only and is not used in Free Pascal.

## See also

TCollection.GetAttr |  | Returns an attribute of the collection.
TCollection.GetItemAttr |  | Returns the attributes of an item.