_Workbook.PasswordEncryptionKeyLength Property

Returns an Integer indicating the key length of the algorithm Microsoft Excel uses when encrypting passwords for the specified workbook. Read-only.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property PasswordEncryptionKeyLength As Integer
    Get
'Usage
Dim instance As _Workbook
Dim value As Integer

value = instance.PasswordEncryptionKeyLength
int PasswordEncryptionKeyLength { get; }

Property Value

Type: System.Int32

Remarks

Use the SetPasswordEncryptionOptions method to specify whether Excel encrypts file properties for the specified password-protected workbook.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace