How to get total count of elements exist in AF Hierarcfy using AF SDK

Discussion created by Bineesh on Nov 25, 2011
Latest reply on Dec 7, 2011 by Bineesh

Hello everyine,


Im very new to AF and AFSDK development.


I have a requirement to map tags to the AF hierarchy. For that I need to loop thriugh the AF elements.


Im using below code:

for (int j = 0; j < hqdatabase.Elements.Count; j++) 
    AFElement hqElement = hqdatabase.Elements[j];

But this will only retrieve count of elements at the parent level.


Is there anyway I can get the total count of existing elements?


Please help.