ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IGraphicFactory Interface / CreateArrowGraphic Method
The arrow geometry
The arrow info or "description"
Example

In This Topic
    CreateArrowGraphic Method (IGraphicFactory)
    In This Topic
    Create an arrow graphic based on the provided geometry and ArrowInfo
    Syntax
    Function CreateArrowGraphic( _
       ByVal arrowLine As Polyline, _
       ByVal arrowInfo As ArrowInfo _
    ) As CIMGraphic

    Parameters

    arrowLine
    The arrow geometry
    arrowInfo
    The arrow info or "description"

    Return Value

    Example
    Create Arrow Graphic
    {
      await QueuedTask.Run(() =>
      {
    
      //Build geometry
      List<Coordinate2D> plCoords = new List<Coordinate2D>();
      plCoords.Add(new Coordinate2D(1, 8.5));
      plCoords.Add(new Coordinate2D(1.66, 9));
      plCoords.Add(new Coordinate2D(2.33, 8.1));
      plCoords.Add(new Coordinate2D(3, 8.5));
      Polyline linePl = PolylineBuilderEx.CreatePolyline(plCoords);
    
      //Set up the arrow info
      var arrowInfo = new ArrowInfo()
      {
        ArrowHeadKey = ArrowInfo.DefaultArrowHeadKeys[1],
        ArrowOnBothEnds = true,
        ArrowSizePoints = 30,
        LineWidthPoints = 15
      };
    
      var graphic = GraphicFactory.Instance.CreateArrowGraphic(linePl, arrowInfo);
    
      //Make an element to add to GraphicsLayer or Layout
      //var ge = ElementFactory.Instance.CreateGraphicElement(
        //  layout, graphic, "Arrow Line", false);
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also