Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
LockPage Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class : LockPage Method



pageIndex
Specifies the index of the page to be locked or unlocked. This index is zero-based.
lockPage
Specifies whether the page will be locked.
pageIndex
Specifies the index of the page to be locked or unlocked. This index is zero-based.
lockPage
Specifies whether the page will be locked.
Locks or unlocks a specific page.

Syntax

Visual Basic (Declaration) 
Public Sub LockPage( _
   ByVal pageIndex As Integer, _
   ByVal lockPage As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim pageIndex As Integer
Dim lockPage As Boolean
 
instance.LockPage(pageIndex, lockPage)
C# 
public void LockPage( 
   int pageIndex,
   bool lockPage
)
C++/CLI 
public:
void LockPage( 
   int pageIndex,
   bool lockPage
) 

Parameters

pageIndex
Specifies the index of the page to be locked or unlocked. This index is zero-based.
lockPage
Specifies whether the page will be locked.

Example

Refer to UpdatePage example.

Remarks

To update a page using UpdatePage, you should call this method passing true for lockPage to lock the specifed page. After updating the page, you should unlock the page by calling this method and passing false for lockPage to unlock the specified page.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.