Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

ILayerList::QueryLayer(int32 n)

$
0
0

Hello,

 

I have a question about a certain function in the SDK. In the SDK documentation of ILayerList class, it is written :

 

virtual IDocumentLayer* QueryLayer(int32 n) const [pure virtual]

Return the n'th layer in this document.

 

Caller is responsible for calling Release().

 

Should I not use

 

InterfacePtr<IDocumentLayer> docLayer(myList->QueryLayer(n));

 

or

 

IDocumentLayer* docLayer = myList->QueryLayer(n);

...

docLayer->Release();

 

?


Viewing all articles
Browse latest Browse all 78596

Trending Articles