ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / ApplicationOptions Class / TableOptions Property
Example

In This Topic
    TableOptions Property
    In This Topic
    Gets the application table options.
    Syntax
    Public Shared ReadOnly Property TableOptions As TableOptions
    public static TableOptions TableOptions {get;}
    Example
    Get/Set Table Options
    {
      var options = ApplicationOptions.TableOptions;
    
      var hideAddNewRow = options.HideAddNewRow;
      options.HideAddNewRow = !hideAddNewRow;
    
      var overrides = options.HonorSelectionColorOverrides;
      options.HonorSelectionColorOverrides = !overrides;
    
      var activateMapView = options.ActivateMapViewAfterOperations;
      options.ActivateMapViewAfterOperations = !activateMapView;
    
      var defaultFontTName = options.DefaultFontName;
      var fontName = options.FontName;
      if (options.IsValidFontName("Arial"))
        options.FontName = "Arial";
    
      var defaultFontSize = options.DefaultFontSize;
      var fontSize = options.FontSize;
      if (options.IsValidFontSize(10))
        options.FontSize = 10;
    
      var heightType = options.ColumnHeaderHeightType;
      options.ColumnHeaderHeightType = TableRowHeightType.Double;
    
      var rowHeightType = options.RowHeightType;
      options.RowHeightType = TableRowHeightType.Single;
    
      var defaultColor = options.DefaultHighlightColor;
      var color = options.HighlightColor;
      // Note: Needs QueuedTask to run
      options.SetHighlightColor(ColorFactory.Instance.CreateRGBColor(0, 0, 255));
    }
    Requirements

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

    ArcGIS Pro version: 3.4 or higher.
    See Also