ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportElementFactory Class / CreateRectangleParagraphGraphicElement Method / CreateRectangleParagraphGraphicElement(IElementContainer,Envelope,String,CIMTextSymbol) Method
IElementContainer
Envelope
String
CIMTextSymbol
Version

CreateRectangleParagraphGraphicElement(IElementContainer,Envelope,String,CIMTextSymbol) Method
Creates a graphic rectangle text element on a layout from an envelope geometry with an added parameter to set the text symbol. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

elementContainer
IElementContainer
envelope
Envelope
text
String
textSymbol
CIMTextSymbol

Return Value

Returns a GraphicElement.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Invalid report section.
Invalid report.
Element extents outside section.
Failed to create text element.
Remarks
The element gets added to the group at the topmost position.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also