ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IExternalTablePane Interface / Caption Property
Example

In This Topic
    Caption Property (IExternalTablePane)
    In This Topic
    Gets or sets the caption for the pane.
    Syntax
    Property Caption As String
    string Caption {get; set;}
    Example
    Change table View caption
    {
      // find all the table panes (table panes hosting map data)
      var tablePanes = FrameworkApplication.Panes.OfType<ITablePane>();
      var tablePane = tablePanes.FirstOrDefault(p => p is ITablePaneEx { Caption: "oldCaption" });
      if (tablePane is ITablePaneEx tablePaneEx)
        tablePaneEx.Caption = "newCaption";
    
      // find all the external table panes (table panes hosting external data)
      var externalPanes = FrameworkApplication.Panes.OfType<IExternalTablePane>();
      var externalTablePane = externalPanes.FirstOrDefault(p => p.Caption == "oldCaption");
      if (externalTablePane != null)
        externalTablePane.Caption = "newCaption";
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also