Imaplayerinfo

284
2
07-16-2010 04:02 AM
DanielTuracek
New Contributor
Hi
I have one question
Is it possible to set up imaplayerinfo for arcgis desktop. If yes, which object i must define for get parent id from ilayer?
for example: Dim pmaplayerinfo as imaplayerinfo
                 Set pmaplayerinfo = new maplayerinfo ????

Its not working for me.

Thanks for replies
0 Kudos
2 Replies
GeorgeSilva
New Contributor
You probably need to Query Interface it.

Something like this (in c#):


ILayer layer = map.get_Layer(0); // use appropriate layer index
IMapLayerInfo layerInfo = layer as IMapLayerInfo;
// or
// IMapLayerInfo layerInfo = (IMapLayerInfo)layer;
0 Kudos
ilankumaranm
New Contributor
You probably need to Query Interface it.

Something like this (in c#):


ILayer layer = map.get_Layer(0); // use appropriate layer index
IMapLayerInfo layerInfo = layer as IMapLayerInfo;
// or
// IMapLayerInfo layerInfo = (IMapLayerInfo)layer;




HI,
the above code is giving error, not able to cast the feautreclass to maplayerinfo..

my requirement is to find the parent layer of the sublayer which is a composite layer.

kindly help.
0 Kudos