SetVisible Method (Element)
Sets the visibility of an element on a page layout. This method must be called on the MCT. Use QueuedTask.Run.
Element_SetVisible
//Modify an element's visibility.
//Perform on the worker thread
await QueuedTask.Run(() =>
{
element.SetVisible(true); //Turn it on / make visible.
});
Update element properties
//Update an element's properties.
//Performed on worker thread
QueuedTask.Run(() =>
{
// update an element's name
element.SetName("New Name");
// update and element's visibility
element.SetVisible(true);
});
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.