4

I want to create a feature layer from a layer (.lyr) file and add it to my ArcGIS map document programmatically. I am using C# and ArcGIS.

I have a layer file and a shapefile.

1 Answer 1

5

There's a snippet for this in the ArcObjects .NET SDK: Add Layer File to ActiveView Snippet

1
  • 1
    to use this we have to add reference of ESRI Catalog UI Object Library in visual studios project.
    – Salman
    Commented Oct 19, 2012 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.