What are PatternElements?

Top  Previous  Next

The FeaturePatternElements are the actual "copies" within a pattern, apart from the first one which is considered special.

 

FeaturePatternElements

 

Here's how you can list them

 

   for (int i = 1; i <= pPatternElements->Count; i++) {

       CComPtr <FeaturePatternElement> pEle = nullptr ;

       hRes = pPatternElements->get_Item (i,&pEle) ;

       if (FAILED(hRes)) {

           ShowCOMError (hRes,L"EWTPFP, get_Item (%d) failed",ikNumber) ;

           return false ;

       }

 

       gLogger.Printf(ekLogMsg,L"Element %d is a <%s>",i,GetObjTypeDesc(pEle->GetType()));

   }

 

 

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)