ArcGIS Pro 2.9 API Reference Guide
CreateChartFrame Method (ReportElementFactory)

ArcGIS.Desktop.Reports Namespace > ReportElementFactory Class : CreateChartFrame Method
ILayoutElementContainer
Envelope
Creates a chartFrame element on a report from an envelope geometry. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

elementContainer
ILayoutElementContainer
envelope
Envelope
mapMember
chartName

Return Value

Returns a ChartFrame.
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.
Cannot add chart frame to this section type.
Failed to create chart frame.
Remarks
The element gets added to the group at the topmost position.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

ReportElementFactory Class
ReportElementFactory Members