I have always found this annoying, there is no way to go back up. You have to go top down until you find your layer and then look at the previous level in your code.
There isn't any way to do this through ArcObjects because a layer doesn't have any kind of "parent" property. You can, however, create your own custom class that has a parent property and use it to build a lookup index of some type.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.