ArcEngine修改字段别名
// 循环处理所有图层
for (int i = 0; i < layerName.Count; i++)
{
IFeatureClass pFeatureClass = pFeatureWorkspace.OpenFeatureClass(layerName[i].ToString());
IFields pFields = pFeatureClass.Fields;
IClassSchemaEdit pClassSchemaEdit = pFeatureClass as IClassSchemaEdit;
for (int j = 0; j < pFields.FieldCount; j++)
{
IField pField = pFields.get_Field(j);
string aliasName = “”;
// 如果需要修改别名
aliasName = fieldAliaslist[pField.Name].ToString();
pClassSchemaEdit.AlterFieldAliasName(pField.Name, aliasName);
}
}
转载自:https://blog.csdn.net/xgl272268065/article/details/9379195