i'd like to develope an application with arcengine that can calculate area of a polygon .
i wrote the below code to select a polygon in combobox
for (int i = 0; i < pmapcontrol2.LayerCount; i++)
{
Pfeaturelayer = (IFeatureLayer)pmapcontrol2.get_Layer(i);
if (Pfeaturelayer.FeatureClass.ShapeType == esriGeometryType.esriGeometryPolygon)
{
cmbfeaturelayer.Items.Add(pmapcontrol2.get_Layer(i).Name);
}
}
but i couldn't wrote code to calculate pfeaturelayer area . i think i should use Ilayer interface and Ilayer use Ifeature to calculate area not ifeaturelayer . is there any way to use Ifeature for this application ? thank you.