layer name from legend

Mar 15, 2012 at 12:20 PM

hello..

I want list of all the layers present in map legend.....

Is there any way by which I can store list of all the layers present in my map from legend to an array...

Developer
Mar 15, 2012 at 7:18 PM

have you tried something like map1.Layers.ToArray()?

Mar 16, 2012 at 5:35 AM

thanks for the reply

I haven't tried it till now... I will definitely try it.

thank u.

Mar 16, 2012 at 5:44 AM

 

map1.Layers.ToArray()

by using this function we can get the list of all layers but I want list of layer name present in map.

Mar 16, 2012 at 8:19 AM

thanks alot for help.I got it.

legendtext property is available with Ifeaturelayer.

thank u.

Mar 19, 2012 at 5:56 AM

hi.

I want to know can we have list of all the shapes from a shape file?

I have already used map.layers.toarray() to get list of all the layers in a map.now I want list of all the shapes from a layer....