ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / IPresentationElementFactory Interface / CreateTextGraphicElement Method
The parent element container. It can be a presentation page or a group element that is associated with a presentation page.
The type of text graphic to create
The geometry for the resulting graphic
The text symbol to be used with the graphic (optional)
The text string (optional)
An element name (optional)
Select after create flag (default is true) (optional)
Additional element properties (optional)

In This Topic
    CreateTextGraphicElement Method (IPresentationElementFactory)
    In This Topic
    Creates a text graphic based on the input geometry, symbol, text and other optional parameters.
    Syntax
    Function CreateTextGraphicElement( _
       ByVal elementContainer As IElementContainer, _
       ByVal textType As TextType, _
       ByVal geometry As Geometry, _
       Optional ByVal textSymbol As CIMTextSymbol, _
       Optional ByVal text As String, _
       Optional ByVal elementName As String, _
       Optional ByVal select As Boolean, _
       Optional ByVal elementInfo As ElementInfo _
    ) As GraphicElement

    Parameters

    elementContainer
    The parent element container. It can be a presentation page or a group element that is associated with a presentation page.
    textType
    The type of text graphic to create
    geometry
    The geometry for the resulting graphic
    textSymbol
    The text symbol to be used with the graphic (optional)
    text
    The text string (optional)
    elementName
    An element name (optional)
    select
    Select after create flag (default is true) (optional)
    elementInfo
    Additional element properties (optional)

    Return Value

    Remarks
    For:
    • TextType.PointText use a point
    • TextType.SplinedText use a polyline (straight or curved)
    • TextType.CircleParagraph use a circle (polygon) or point
    • TextType.EllipseParagraph use an ellipse (polygon) or point
    • TextType.RectangleParagraph use an envelope or point
    • TextType.PolygonParagraph use a polygon or point
    If a point is used as the input for the paragraph text types, a default element extent is applied. if you want to use a text graphic previously created, eg via:
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also