Exemple #1
0
        public void Load(IFeature pFeature, string nameField)
        {
            _boundary = pFeature.Shape;
            string pName = FeatureHelper.GetFeatureStringValue(pFeature, nameField);

            PageName = pName;
            _autoElements.Clear();
            for (int i = 0; i < pFeature.Fields.FieldCount; i++)
            {
                IField pField = pFeature.Fields.Field[i];
                if (pField.Type == esriFieldType.esriFieldTypeGeometry)
                {
                    continue;
                }

                string pValue = FeatureHelper.GetFeatureStringValue(pFeature, pField.Name);
                _autoElements.Add(new PrintPageElement(pField.Name, pField.AliasName, pValue));
            }
        }