Skip to main content

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.1.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