ArcGIS Pro 2.7 API Reference Guide
CreateElement Method (IElementFactory)

ArcGIS.Desktop.Layouts Namespace > IElementFactory Interface : CreateElement Method
Layout or GroupElement
The ArcGIS.Core.CIM.CIMElement definition to use for the create
Creates an element using the corresponding ArcGIS.Core.CIM.CIMElement definition
Syntax

Parameters

elementContainer
Layout or GroupElement
cimElement
The ArcGIS.Core.CIM.CIMElement definition to use for the create

Return Value

Remarks
cimElement cannot be of type ArcGIS.Core.CIM.CIMGroupElement or a NotSupportedException will be thrown. Use LayoutElementFactory.CreateGroupElement and related overloads to create a group element.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IElementFactory Interface
IElementFactory Members