ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Data.Mapping Namespace / AnnotationFeature Class / GetGraphicOutline Method
Example

In This Topic
    GetGraphicOutline Method (AnnotationFeature)
    In This Topic
    Gets the graphic outline.
    Syntax
    public Geometry GetGraphicOutline()
    Public Function GetGraphicOutline() As Geometry
    Example
    Get the Outline Geometry for an Annotation
    {
    
      await QueuedTask.Run(() =>
      {
        //get the first annotation feature...
        //...assuming at least one feature gets selected
        using var fc = annotationLayer.GetFeatureClass();
        using var rc = fc.Search();
        rc.MoveNext();
        using var af = rc.Current as AnnotationFeature;
        var outline_geom = af.GetGraphicOutline();
        //TODO - use the outline...
    
        //Note:
        //var graphic = annoFeature.GetGraphic();
        //gets the CIMTextGraphic...
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also