Back to Devexpress

TreeListOptionsFind.ExpandNodesOnSearch Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistoptionsfind-0fea55d2.md

latest2.7 KB
Original Source

TreeListOptionsFind.ExpandNodesOnSearch Property

Gets or sets whether to expand a node if its child nodes contain the search string.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean ExpandNodesOnSearch { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property ExpandNodesOnSearch As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

true to expand a node if its child nodes contain the search string; otherwise, false. The Default value is equivalent to true.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ExpandNodesOnSearch
TreeList

.OptionsFind .ExpandNodesOnSearch

|

Remarks

The ExpandNodesOnSearch property is in effect if the ColumnViewOptionsFind.Behavior property is set to Search.

When a user starts to search with the ExpandNodesOnSearch option enabled, the Tree List expands all nodes whose child nodes match the search query:

See Also

Find Panel

TreeListOptionsFind Class

TreeListOptionsFind Members

DevExpress.XtraTreeList.Columns Namespace