Select to view content in your preferred language

How I can get SelectedLayer and document of axMapControl?

1000
2
03-02-2011 03:30 AM
AnatoliiTerentiev
Deactivated User
arcgisEngine+c#+.NET
How I can get SelectedLayer property on axMapContrlol?
And how I can get document of the axMapControl?
Thanks!
0 Kudos
2 Replies
NeilClemmons
Honored Contributor
The MapControl doesn't have a document, only a map.  You can load it using an mxd but it's not the document that loads, just the layers in the map.  The selected layer is a property of the TocControl, not the MapControl.
0 Kudos
AnatoliiTerentiev
Deactivated User
c#+.NET+arcgis Engine
Thank you very much! But how I can get SelectedLayer from the TOCContol? I am giving my way to despair!
PS.  I find SelectedLayer in the next way
axTOCControl1.GetSelectedItem(ref item, ref map, ref layer2, ref other, ref index);
But the main problem is - how to define the selected object of the layer , when I click on the corresponding symbol?
0 Kudos