ArcGIS Pro 3.4 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 static TableOptions TableOptions {get;}
    Public Shared ReadOnly Property TableOptions As TableOptions
    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;
    QueuedTask.Run(() =>
    {
      options.SetHighlightColor(ColorFactory.Instance.CreateRGBColor(0, 0, 255));
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also