ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / ICatalogWindow Interface
Members Example

In This Topic
    ICatalogWindow Interface
    In This Topic
    Use this interface to change the catalog dock pane content and secondary content for the portal content type
    Syntax
    Public Interface ICatalogWindow 
    public interface ICatalogWindow 
    Remarks
    The catalog content can only be manipulated if the active window in the application is the catalog dock pane. See IsActiveWindow. Otherwise requests to change the displayed content type or secondary portal content type will be ignored. The CatalogContentType.Portal content type must be the current content type to change the CatalogSecondaryPortalContentType.
    Example
    Get the catalog content type currently being shown
    {
      //Gets the Catalog pane
      var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
      var catContentType = catalogWindow.GetCurrentContentType();
      // use catContentType;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.6 or higher.
    See Also