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: 255.255.255.255
Syntax public void DocLock(
bool cancel_rendering
)
Public Sub DocLock (
cancel_rendering As Boolean
)
public:
virtual void DocLock(
[InAttribute] bool cancel_rendering
) sealed
function DocLock(cancel_rendering);
Parameters
- 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