public void DumpTraverseFeatures(Feature swFeat, long nLevel, ref string asciitext)
{
Feature swSubFeat;
string sPadStr = " ";
long i = 0;
for (i = 0; i <= nLevel; i++)
{
sPadStr = sPadStr + " ";
}
while ((swFeat != null))
{
asciitext += sPadStr + " -" + swFeat.Name + " [" + swFeat.GetTypeName2() + "]" + "\n";
swSubFeat = (Feature)swFeat.GetFirstSubFeature();
if ((swSubFeat != null))
{
DumpTraverseFeatures(swSubFeat, nLevel + 1, ref asciitext);
}
if (nLevel == 1)
{
swFeat = (Feature)swFeat.GetNextFeature();
}
else
{
swFeat = (Feature)swFeat.GetNextSubFeature();
}
}
}