ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportElementFactory Class / CreateFieldValueTextElement Method
IElementContainer
Envelope
CIMReportField
CIMTextSymbol

In This Topic
    CreateFieldValueTextElement Method (ReportElementFactory)
    In This Topic
    Creates a field value text element on a report from an envelope geometry. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function CreateFieldValueTextElement( _
       ByVal elementContainer As IElementContainer, _
       ByVal envelope As Envelope, _
       ByVal reportField As CIMReportField, _
       Optional ByVal textSymbol As CIMTextSymbol _
    ) As GraphicElement

    Parameters

    elementContainer
    IElementContainer
    envelope
    Envelope
    reportField
    CIMReportField
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also