Back to Devexpress

TreeListOptionsSelection.EnableAppearanceFocusedRow Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsselection-7ba6996e.md

latest4.9 KB
Original Source

TreeListOptionsSelection.EnableAppearanceFocusedRow Property

Gets or sets whether the appearance settings for the focused node are enabled.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool EnableAppearanceFocusedRow { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property EnableAppearanceFocusedRow As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the appearance settings for the focused node are enabled; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableAppearanceFocusedRow
TreeList

.OptionsSelection .EnableAppearanceFocusedRow

|

Remarks

This property specifies whether the appearance settings provided by the TreeListAppearanceCollection.FocusedRow property are in effect. If the EnableAppearanceFocusedRow property is set to false , the appearance settings used to paint the focused node are ignored. In this case the focused node’s appearance can be specified by the TreeListAppearanceCollection.Row, TreeListAppearanceCollection.EvenRow and TreeListAppearanceCollection.OddRow properties.

If the cells in a focused node are custom painted cells or their appearance settings are specified in the TreeList.NodeCellStyle event handler, the appearance settings provided by the TreeListAppearanceCollection.FocusedRow property are ignored regardless of the EnableAppearanceFocusedRow property’s value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EnableAppearanceFocusedRow property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/TreeList/TreeListItemControlProvider.cs#L32

csharp
tree.OptionsSelection.EnableAppearanceFocusedCell = false;
tree.OptionsSelection.EnableAppearanceFocusedRow = false;
tree.OptionsMenu.EnableColumnMenu = false;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/TreeList/TreeListItemControlProvider.vb#L36

vb
tree.OptionsSelection.EnableAppearanceFocusedCell = False
tree.OptionsSelection.EnableAppearanceFocusedRow = False
tree.OptionsMenu.EnableColumnMenu = False

See Also

EnableAppearanceFocusedCell

FocusedRow

NodeCellStyle

TreeListOptionsSelection Class

TreeListOptionsSelection Members

DevExpress.XtraTreeList Namespace