Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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.
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
)
Managed Extensions for 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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features