ArcGIS Pro 2.7 API Reference Guide
CreateAttachmentFrame Method (ReportElementFactory)

ArcGIS.Desktop.Reports Namespace > ReportElementFactory Class : CreateAttachmentFrame Method
ILayoutElementContainer
Envelope
Creates an attachment frame element on a report from an envelope geometry. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function CreateAttachmentFrame( _
   ByVal elementContainer As ILayoutElementContainer, _
   ByVal envelope As Envelope _
) As AttachmentFrame

Parameters

elementContainer
ILayoutElementContainer
envelope
Envelope

Return Value

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.
Attachment frame elements only valid in details section.
Failed to create attachment frame.
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