ArcGIS Pro 2.6 API Reference Guide
GetDefinition Method (Element)
Example 

ArcGIS.Desktop.Layouts Namespace > Element Class : GetDefinition Method
Returns the element's CIM definition. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public CIMElement GetDefinition()
Public Function GetDefinition() As CIMElement

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Modify an element's CIM properties.

//Perform on the worker thread
await QueuedTask.Run(() =>
{
  CIMElement CIMElm = element.GetDefinition();

  //Modify a CIM value

  element.SetDefinition(CIMElm);
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Element Class
Element Members