ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportElementFactory Class / CreateAttachmentFrame Method
IElementContainer
Envelope

In This Topic
    CreateAttachmentFrame Method (ReportElementFactory)
    In This Topic
    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 IElementContainer, _
       ByVal envelope As Envelope _
    ) As AttachmentFrame

    Parameters

    elementContainer
    IElementContainer
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also