/// <summary> /// 添加多个新字段 /// </summary> /// <param name="newLayer">新图层</param> /// <param name="fieldNames">字段列表</param> public void AddNewFields(IFeatureLayer newLayer, List <string> fieldNames) { NewFieldCreateClass createNewField = new NewFieldCreateClass(newLayer, newAttributeTable); createNewField.AddNewFields(fieldNames, esriFieldType.esriFieldTypeString); }
/// <summary> /// 添加新字段 /// </summary> /// <param name="newAttributeTable"></param> /// <param name="fieldNames"></param> private void AddNewFiled(DataTable newAttributeTable, List <string> fieldNames) { NewFieldCreateClass createNewField = new NewFieldCreateClass(newLayer, newAttributeTable); createNewField.AddNewFields(fieldNames, esriFieldType.esriFieldTypeString); }
/// <summary> /// 添加新字段 /// </summary> /// <param name="newLayer">新图层</param> /// <param name="columnName"></param> public void AddNewFiled(IFeatureLayer newLayer, string columnName) { NewFieldCreateClass createNewField = new NewFieldCreateClass(newLayer, newAttributeTable); createNewField.AddNewFiled(columnName, esriFieldType.esriFieldTypeString); }