I have a simple vb.net code which gets all the layer names present in the ArcMap and displays it in a vb form combobox. My question is if I select a layer name that is present in my combobox it should get me the column headings of attribute table of the selected layer. How can I achieve this?
-
Welcome to GIS SE, please take the community tour here: gis.stackexchange.com/tour. For coding question please provide your best code attempt within the question and note where you are stuck. This forum does not provide code it for me answers.– artwork21Commented Sep 1, 2017 at 11:47
Add a comment
|
1 Answer
To access the fields of a layer you need to get a handle on the FeatureClass. It has a property called fields that returns an IFields object. There are worked samples in the API help file.