//TO DO: get the field names from input_feature and display as checkboxesAppreciate any help.
public static List<string> GetFeatureFields( IFeatureLayer featureLayer ) { List<string> fieldList = new List<string>(); IFeatureClass featureClass = featureLayer.FeatureClass; if ( featureClass == null ) return fieldList; for ( int x = 0; x < featureClass.Fields.FieldCount; x++ ) { IField field = featureClass.Fields.get_Field( x ); fieldList.Add( field.Name ); } return fieldList; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.