c#代码
IFeatureLayer featureLayer = m_mapControl.get_Layer(0) as IFeatureLayer;
IFeatureClass featureClass = featureLayer.FeatureClass;
int num = featureClass.Fields.FieldCount;
List lstName = new List();
for (int i = 0; i < num; i++) {
string name = featureClass.Fields.get_Field(i).Name;
java : //string name = featureClass.getFieldsget().getField(i).getName();
lstName.Add(name);
}
ArcEngine获取图层的所有字段名
最新推荐文章于 2021-02-15 13:52:30 发布