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

In This Topic
    Alternate2RowBackgroundCount Property
    In This Topic
    Gets or sets the alternate 2 row background count. Show odd row background for this many rows before alternating.
    Syntax
    public int Alternate2RowBackgroundCount {get; set;}
    Public Property Alternate2RowBackgroundCount 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