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

How to get Layer's visibility status?

$
0
0

Ii I know the class name & UID of an item on a indd file, how can i get it's visibility status?

 

I tried to do it like this as shown in a nexample,

 

InterfacePtr<ISpreadLayer> spreadLayer(::GetDataBase(unknown), hierarchy -> GetLayerUID(), UseDefaultIID());

if(spreadLayer != nil)

bool visibleFlag = spreadLayer->IsVisible();

 

but above code gives 'true' even for invisible items.

 

please let me know what is the wrong?

 

Thanks


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>