arcgis engine - axTocControl - how to expande item?

2246
1
07-13-2011 01:02 AM
AnatoliiTerentiev
Occasional Contributor III
arcgis engine + .net + c#

Can anybody help - how to expand/collapse  group Layer in axTocControl?
Thanks for any advice ore reference!
0 Kudos
1 Reply
YaminiManickam
New Contributor III
Hi!

The ILegendGroup.Visible property indicates whether or not a layer's entry in the table of contents is expanded or collapsed. If a layer has only one legend group, then if Visible = True, then the layer is expanded. If a layer has more than one legend group, then the rule is that if any of the the layer's legend groups are visible, then the layer's entry in the table of contents is expanded.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0012000007n3000000

I hope this helps.
0 Kudos