Back to Devexpress

TreeListOptionsSelection.EnableAppearanceFocusedCell Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsselection-556d347e.md

latest4.4 KB
Original Source

TreeListOptionsSelection.EnableAppearanceFocusedCell Property

Gets or sets whether the appearance settings for the focused cell 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 EnableAppearanceFocusedCell { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property EnableAppearanceFocusedCell As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableAppearanceFocusedCell
TreeList

.OptionsSelection .EnableAppearanceFocusedCell

|

Remarks

The EnableAppearanceFocusedCell property specifies whether the appearance settings specified by the TreeListAppearanceCollection.FocusedCell property are in effect.

If the focused cell is a custom painted cell or its appearance settings are specified in the TreeList.NodeCellStyle event handler the settings provided by the TreeListAppearanceCollection.FocusedCell property are ignored regardless of the EnableAppearanceFocusedCell property’s value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EnableAppearanceFocusedCell 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#L30

csharp
tree.OptionsView.FocusRectStyle = DrawFocusRectStyle.RowFullFocus;
tree.OptionsSelection.EnableAppearanceFocusedCell = false;
tree.OptionsSelection.EnableAppearanceFocusedCell = false;

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

vb
tree.OptionsView.FocusRectStyle = DrawFocusRectStyle.RowFullFocus
tree.OptionsSelection.EnableAppearanceFocusedCell = False
tree.OptionsSelection.EnableAppearanceFocusedCell = False

See Also

EnableAppearanceFocusedRow

AppearanceCell

Appearances

TreeListOptionsSelection Class

TreeListOptionsSelection Members

DevExpress.XtraTreeList Namespace