Click or drag to resize

PDFViewCtrlDocLock Method

Locks the PDFDoc instance used by PDFViewCtrl. Simultaneous access to a PDFDoc instance is not allowed. Since PDFViewCtrl renders a PDFDoc in a rendering thread, UI access to the same PDFDOc instance should lock the document first and then unlock it with DocUnlock afterwards.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version:
public void DocLock(
	bool cancel_rendering


Type: SystemBoolean
If true, rendering thread is canceled first before trying to lock the document. This ensures a quick return from this function. Otherwise, this function can halt the UI and the app may be unresponsive before the rendering thread finishes. If the rendering thread is canceled, unlocking the document DocUnlock will restart the rendering thread.
See Also