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

DocumentPreviewControl.StopBuilding() Method

In This Article

Stops building the document.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v24.2.dll

NuGet Package: DevExpress.Wpf.Printing

#Declaration

public virtual void StopBuilding()

#Remarks

Call the StopBuilding method to stop generating document pages if they started generation using the CreateDocument method of the document source object with the buildForInstantPreview parameter set to true.

To determine whether it is allowed to stop building the document, call the DocumentPreviewControl.CanStopBuilding method.

After the StopBuilding method is called, all pages that are currently ready will be shown in the DocumentPreviewControl.

See Also