Back to Devexpress

TreeListAppearanceCollection.EvenRow Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistappearancecollection-94917f17.md

latest4.0 KB
Original Source

TreeListAppearanceCollection.EvenRow Property

Gets the appearance settings used to paint even nodes.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public AppearanceObject EvenRow { get; }
vb
Public ReadOnly Property EvenRow As AppearanceObject

Property Value

TypeDescription
AppearanceObject

An AppearanceObject object that provides the appearance settings used to paint even nodes.

|

Remarks

The EvenRow property specifies the appearance settings of data cells within even nodes. If this property is not specified, the appearance of data cells within even nodes is specified by the TreeListAppearanceCollection.Row property.

To specify the appearance of odd nodes, use the TreeListAppearanceCollection.OddRow property.

Note

The TreeListAppearanceCollection.EvenRow and TreeListAppearanceCollection.OddRow properties are in effect if the TreeListOptionsView.EnableAppearanceEvenRow and TreeListOptionsView.EnableAppearanceOddRow options are set to true (the default value is false ).

For more information on appearances, see the Appearances topic.

Example

The following code shows how to use the EvenRow and OddRow properties to customize the appearance of even and odd rows in the TreeList. Note that these properties are in effect if the EnableAppearanceEvenRow and EnableAppearanceOddRow options are enabled.

csharp
treeList1.Appearance.EvenRow.BackColor = Color.PaleVioletRed;
treeList1.Appearance.OddRow.BackColor = Color.LightPink;
treeList1.OptionsView.EnableAppearanceEvenRow = true;
treeList1.OptionsView.EnableAppearanceOddRow = true;
vb
TreeList1.Appearance.EvenRow.BackColor = Color.PaleVioletRed
TreeList1.Appearance.OddRow.BackColor = Color.LightPink
TreeList1.OptionsView.EnableAppearanceEvenRow = True
TreeList1.OptionsView.EnableAppearanceOddRow = True

See Also

OddRow

Row

Appearances

TreeListAppearanceCollection Class

TreeListAppearanceCollection Members

DevExpress.XtraTreeList Namespace