ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / TableOptions Class
Members Example

In This Topic
    TableOptions Class
    In This Topic
    Gets and sets the application table options.
    Object Model
    TableOptions ClassCIMColor ClassCIMColor Class
    Syntax
    public class TableOptions 
    Public Class 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));
    });
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Core.TableOptions

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also