Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListVisibleNodeOperation.NeedsVisitChildren(TreeListNode) Method

Gets a value specifying whether children of the specified node are to be visited.

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public sealed override bool NeedsVisitChildren(
    TreeListNode node
)

#Parameters

Name Type Description
node TreeListNode

A TreeListNode object representing the node whose child nodes are to be visited.

#Returns

Type Description
Boolean

true always.

#Remarks

Descendants of the TreeListVisibleNodeOperation class are used to specify the operation performed on nodes by the TreeListNodesIterator.DoVisibleNodesOperation method. This method traverses through visible nodes within a predefined range. Thus, the logic of determining which nodes are to be visited is implemented in the method itself. The NeedsVisitChildren method is not used for this purpose. Therefore, the TreeListVisibleNodeOperation class overrides the TreeListOperation.NeedsVisitChildren method of the base class to return true. This method cannot be overridden by descendants of the TreeListVisibleNodeOperation class.

See Also