Spread WinForms 15
FarPoint.Excel Assembly / FarPoint.Excel Namespace / IProtectionSupport Interface / ExcelGetWorkbookProtection Method
The workbook password.
The revisions password.
if set to true [lock structure].
if set to true [lock windows].
if set to true [lock revision].


In This Topic
ExcelGetWorkbookProtection Method
In This Topic
Excels the get workbook protection.
Syntax
'Declaration
 
Function ExcelGetWorkbookProtection( _
   ByRef workbookPassword() As Byte, _
   ByRef revisionsPassword() As Byte, _
   ByRef lockStructure As Boolean, _
   ByRef lockWindows As Boolean, _
   ByRef lockRevision As Boolean _
) As Boolean
 
'Usage
 
Dim instance As IProtectionSupport
Dim workbookPassword() As Byte
Dim revisionsPassword() As Byte
Dim lockStructure As Boolean
Dim lockWindows As Boolean
Dim lockRevision As Boolean
Dim value As Boolean
 
value = instance.ExcelGetWorkbookProtection(workbookPassword, revisionsPassword, lockStructure, lockWindows, lockRevision)

Parameters

workbookPassword
The workbook password.
revisionsPassword
The revisions password.
lockStructure
if set to true [lock structure].
lockWindows
if set to true [lock windows].
lockRevision
if set to true [lock revision].
See Also