RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTMLTableColumns.GetAttrCount Method

Returns the number of custom attributes associated with items in the collection.

Pascal
function GetAttrCount: Integer; override;
C++
virtual __fastcall int GetAttrCount();

TCollection descendants can associate user-defined attributes with the items in the collection. Each attribute has a name and, for each item in the collection, a value that is a string. GetAttrCount returns the number of distinct attributes assigned to each item in the collection. 

As implemented in TCollection, GetAttrCount always returns 0, because TCollection defines no custom attributes. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!