private double ConvertPixelsToMapUnits(IActiveView pActiveView, doublepixelUnits)
{//Uses the ratio of the size of the map in pixels to map units to do the conversion
IPoint p1 =pActiveView.ScreenDisplay.DisplayTransformation.VisibleBounds.UpperLeft;
IPoint p2=pActiveView.ScreenDisplay.DisplayTransformation.VisibleBounds.UpperRight;intx1, x2, y1, y2;
pActiveView.ScreenDisplay.DisplayTransformation.FromMapPoint(p1,out x1, outy1);
pActiveView.ScreenDisplay.DisplayTransformation.FromMapPoint(p2,out x2, outy2);double pixelExtent = x2 -x1;double realWorldDisplayExtent =pActiveView.ScreenDisplay.DisplayTransformation.VisibleBounds.Width;double sizeOfOnePixel = realWorldDisplayExtent /pixelExtent;return pixelUnits *sizeOfOnePixel;
}
IMap pMap=axMapControl1.Map;
IActiveView pActiveView= pMap asIActiveView;
IFeatureLayer pFeatureLayer= pMap.get_Laye