ArcGIS Pro 2.7 API Reference Guide
CreateCircleParagraphGraphicElement(ILayoutElementContainer,EllipticArcSegment,String) Method
Example 

ArcGIS.Desktop.Layouts Namespace > LayoutElementFactory Class > CreateCircleParagraphGraphicElement Method : CreateCircleParagraphGraphicElement(ILayoutElementContainer,EllipticArcSegment,String) Method
Layout or GroupElement
EllipticArcSegment
String
Creates a graphic circle text element on a layout from an elliptical arc segment geometry. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Function CreateCircleParagraphGraphicElement( _
   ByVal elementContainer As ILayoutElementContainer, _
   ByVal circle As EllipticArcSegment, _
   Optional ByVal text As String _
) As GraphicElement

Parameters

elementContainer
Layout or GroupElement
circle
EllipticArcSegment
text
String

Return Value

Returns a GraphicElement.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
If the element container is a Layout then the element gets added to the root level of the layout TOC at the top most position. If the element container is a GroupElement then it gets added to the group at the topmost position.
Example
//Create circle paragraph text with basic text settings and optionally a modified border.

//Construct on the worker thread
await QueuedTask.Run(() =>
{
  //Build geometry
  Coordinate2D center = new Coordinate2D(4.5, 4);
  EllipticArcBuilder eabCir = new EllipticArcBuilder(center, 0.5, esriArcOrientation.esriArcClockwise);
  EllipticArcSegment cir = eabCir.ToSegment();

  //Set symbolology, create and add element to layout
  CIMTextSymbol sym = SymbolFactory.Instance.ConstructTextSymbol(ColorFactory.Instance.GreenRGB, 10, "Arial", "Regular");
  string text = "Circle, circle, circle, circle, circle, circle, circle, circle, circle, circle, circle";
  GraphicElement cirTxtElm = LayoutElementFactory.Instance.CreateCircleParagraphGraphicElement(layout, cir, text, sym);
  cirTxtElm.SetName("New Circle Text");

  //(Optionally) Modify paragraph border 
  CIMGraphic cirTxtGra = cirTxtElm.GetGraphic();
  CIMParagraphTextGraphic cimCirTxtGra = cirTxtGra as CIMParagraphTextGraphic;
  cimCirTxtGra.Frame.BorderSymbol = new CIMSymbolReference();
  cimCirTxtGra.Frame.BorderSymbol.Symbol = SymbolFactory.Instance.ConstructLineSymbol(ColorFactory.Instance.GreyRGB, 1.0, SimpleLineStyle.Solid);
  cirTxtElm.SetGraphic(cirTxtGra);
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LayoutElementFactory Class
LayoutElementFactory Members
Overload List