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.
arcobjectsclayers
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.
Best Answer
There's a snippet for this in the ArcObjects .NET SDK: Add Layer File to ActiveView Snippet