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

TreeListOperation.FinalizeOperation() Method

In This Article

Can be overridden to perform final operations and free allocated resources.

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public virtual void FinalizeOperation()

#Remarks

Some operations require their results to be corrected after all the required nodes have been visited. For instance, this event can be used when calculating the average of field values within the processed nodes. The TreeListOperation.Execute method can be used to increment a node counter and sum field values. The FinalizeOperation method may then be used to calculate the average.

You can also override the FinalizeOperation method to free any resources that were allocated during the previous operation.

See Also