Get selection polygon ArcObject

426 Views Asked by At

In C#/ArcObjects, is it possible to get the geometry of the polygon that is used to select features in ArcMap? For example, when you select point features with a polygon, how do you get the geometry of that polygon?

Thank for your help!

1

There are 1 best solutions below

1
qixmiers On
IMxDocument doc = ArcMap.Document;
IMap map = doc.FocusMap;

selectedPolygon = map.SelectedObjects(new List<esriGeometryType> {
    esriGeometryType.esriGeometryPolygon
});