ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / Layout Class / ShowProperties Method
Example

In This Topic
    ShowProperties Method
    In This Topic
    Opens the Layout Properties dialog.
    Syntax
    public void ShowProperties()
    Public Sub ShowProperties() 
    Exceptions
    ExceptionDescription
    This method must be called on the GUI thread.
    Remarks
    This method must be called on the GUI thread and not in the background using QueuedTask.Run.
    Example
    Layout_ShowProperties
    //Open the layout properties dialog.
    
    //Get the layout associated with a layout project item
    LayoutProjectItem lytItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals("Layout Name"));
    Layout lyt = await QueuedTask.Run(() => lytItem.GetLayout());  //Worker thread
    
    //Open the properties dialog
    lyt.ShowProperties();  //GUI thread
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also