# AlternatingRowBackground

> Options to display alternating background colors for collection view rows.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum AlternatingRowBackground
```

## Remarks

If there are more rows with content than there are visible rows, you will not see a difference between the `All` option and the `ContentOnly` option.

## Fields

| Value                                                                                                         | Description                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [All](/engine/6000.0/script-reference/unityengine/uielements/alternatingrowbackground/all.md)                 | Alternate background colors for all rows, regardless of whether they have content. The background color continues to alternate for empty lines. |
| [ContentOnly](/engine/6000.0/script-reference/unityengine/uielements/alternatingrowbackground/contentonly.md) | Alternate background colors only for rows that have content. The background color does not alternate for empty lines.                           |
| [None](/engine/6000.0/script-reference/unityengine/uielements/alternatingrowbackground/none.md)               | Do not alternate background colors for rows.                                                                                                    |
