コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        /// <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);
        }