ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / DrawingOutlineType Enumeration
Example Example

In This Topic
    DrawingOutlineType Enumeration
    In This Topic

    Defines the type of drawing outline for a feature.

    Syntax
    Members
    MemberDescription
    BoundingEnvelope Bounding envelope for a feature graphic.
    Exact Exact geometry for a feature graphic.
    Example
    Get the Mask Geometry for a Feature
    {
        if (featureLayer == null)
            return;
    
        var mv = MapView.Active;
        //Note: Run within a QueuedTask
        using (var table = featureLayer.GetTable())
        {
            using (var rc = table.Search())
            {
                //get the first feature...
                //...assuming at least one feature gets retrieved
                rc.MoveNext();
                var oid = rc.Current.GetObjectID();
    
                //Use DrawingOutlineType.BoundingEnvelope to retrieve a generalized
                //mask geometry or "Box". The mask will be in the same SpatRef as the map
                var mask_geom = featureLayer.GetDrawingOutline(oid, mv, DrawingOutlineType.Exact);
    
                //TODO - use the mask geometry...
            }
        }
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.DrawingOutlineType

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also