ArcGIS Pro 2.6 API Reference Guide
SetGraphic Method (GraphicElement)
Example 

ArcGIS.Desktop.Layouts Namespace > GraphicElement Class : SetGraphic Method
CIMGraphic
Applies the changes made to a CIMGraphic back to the GraphicElement. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetGraphic( 
   CIMGraphic cimGraphic
)
Public Sub SetGraphic( _
   ByVal cimGraphic As CIMGraphic _
) 

Parameters

cimGraphic
CIMGraphic
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Note: call within QueuedTask.Run() 
graElm.SetGraphic(CIMGra);
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

GraphicElement Class
GraphicElement Members