ArcGIS Pro 2.8 API Reference Guide
CreateRectangleParagraphGraphicElement(ILayoutElementContainer,Envelope,String,CIMTextSymbol) Method

ArcGIS.Desktop.Reports Namespace > ReportElementFactory Class > CreateRectangleParagraphGraphicElement Method : CreateRectangleParagraphGraphicElement(ILayoutElementContainer,Envelope,String,CIMTextSymbol) Method
ILayoutElementContainer
Envelope
String
CIMTextSymbol
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
Public Overloads Function CreateRectangleParagraphGraphicElement( _
   ByVal elementContainer As ILayoutElementContainer, _
   ByVal envelope As Envelope, _
   Optional ByVal text As String, _
   Optional ByVal textSymbol As CIMTextSymbol _
) As GraphicElement

Parameters

elementContainer
ILayoutElementContainer
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 10, Windows 8.1

See Also

Reference

ReportElementFactory Class
ReportElementFactory Members
Overload List