Skip to main content

TreeListOperation.FinalizeOperation() Method

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

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v24.1.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