ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / Pane Class / Caption Property
Example

In This Topic
    Caption Property (Pane)
    In This Topic
    Gets or sets the Pane's caption.
    Syntax
    public new string Caption {get; set;}
    Public Shadows Property Caption As String
    Example
    Activate a pane
    {
      var mapPanes = FrameworkApplication.Panes.OfType<IMapPane>();
      foreach (Pane p in mapPanes.Cast<Pane>())
      {
        if (p.Caption == paneID)
        {
          p.Activate();
          break;
        }
      }
    }
    Change the Map name and caption of the active pane
    {
      var activeMap = MapView.Active?.Map;
      await QueuedTask.Run(() => activeMap?.SetName("Test"));
      ProApp.Panes.ActivePane.Caption = "Caption";
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also