ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMTableFrame Class / Alternate1RowBackgroundCount Property
Example

In This Topic
    Alternate1RowBackgroundCount Property
    In This Topic
    Gets or sets the alternate 1 row background count. Show even row background for this many rows before alternating.
    Syntax
    public int Alternate1RowBackgroundCount {get; set;}
    Public Property Alternate1RowBackgroundCount As Integer
    Example
    TableFrame_ModifyExisting
    //Modify an existing tableframe using CIM properties.
    
    //Reference the active layout
    Layout layout = LayoutView.Active.Layout;
    
    //Perform on the worker thread
    await QueuedTask.Run(() =>
    {
      //Reference table frame
      TableFrame TF = layout.FindElement("Table Frame") as TableFrame;
    
      //Modify CIM properties
      CIMTableFrame cimTF = TF.GetDefinition() as CIMTableFrame;
      cimTF.Alternate1RowBackgroundCount = 1;
      cimTF.Alternate2RowBackgroundCount = 1;
    
      //Apply the changes
      TF.SetDefinition(cimTF);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also