Back to Devexpress

TreeListOptionsView.EnableAppearanceEvenRow Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-02ef35d5.md

latest3.6 KB
Original Source

TreeListOptionsView.EnableAppearanceEvenRow Property

Gets or sets whether even nodes are painted using the appearance settings provided by the TreeListAppearanceCollection.EvenRow property.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public virtual bool EnableAppearanceEvenRow { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property EnableAppearanceEvenRow As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to paint even nodes using the appearance settings provided by the TreeListAppearanceCollection.EvenRow property; false to use the appearance settings provided by the TreeListAppearanceCollection.Row property.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableAppearanceEvenRow
TreeList

.OptionsView .EnableAppearanceEvenRow

|

Remarks

For more information on appearances, see the Appearances document.

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

EnableAppearanceOddRow

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace