arcengine 获取layer属性表字段名称

 
        /// <summary>
        /// 获取layer属性表字段名称
        /// </summary>
        /// <param name=”layer”></param>
        /// <returns></returns>
        static public List<string> getLayerField(IFeatureLayer layer)
        {
            List<string> fields = new List<string>();
            for (int i = 0; i < layer.FeatureClass.Fields.FieldCount; i++)
            {
                fields.Add(layer.FeatureClass.Fields.get_Field(i).Name);
            }
            return fields;
        }

转载自:https://blog.csdn.net/tianxinzhe032/article/details/6659999

You may also like...