Back to Devexpress

TreeListAppearanceCollection.TopNewRow Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistappearancecollection-52fef044.md

latest2.6 KB
Original Source

TreeListAppearanceCollection.TopNewRow Property

Provides access to appearance settings that are used to paint the New Item Row.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
AppearanceObject

An object that specifies appearance settings that are used to paint the New Item Row.

|

Remarks

You can use the TreeList.Appearance.TopNewRow appearance setting’s BackColor and ForeColor properties to specify the background and foreground colors for the New-Item Row.

Example

The code below show how to change the New Item Row‘s background and foreground colors.

csharp
treeList1.Appearance.TopNewRow.BackColor = System.Drawing.Color.AliceBlue;
treeList1.Appearance.TopNewRow.ForeColor = System.Drawing.Color.Fuchsia;
vb
treeList1.Appearance.TopNewRow.BackColor = System.Drawing.Color.AliceBlue
treeList1.Appearance.TopNewRow.ForeColor = System.Drawing.Color.Fuchsia

See Also

Appearances

New Item Row

TreeListAppearanceCollection Class

TreeListAppearanceCollection Members

DevExpress.XtraTreeList Namespace