ArcGIS Pro 2.7 API Reference Guide
SetPage(CIMPage) Method
Example 

ArcGIS.Desktop.Layouts Namespace > Layout Class : SetPage(CIMPage) Method
CIMPage
Applies the changes made to a modified CIMPage to the layout. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetPage( 
   CIMPage page
)
Public Sub SetPage( _
   ByVal page As CIMPage _
) 

Parameters

page
CIMPage
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Modify a layouts page settings.

//Perform on the worker thread
await QueuedTask.Run(() =>
{

  CIMPage page = layout.GetPage();

  //Do something 

  layout.SetPage(page);
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members