This documentation is archived and is not being maintained.

_Document.PasswordEncryptionKeyLength Property

Returns an Integer indicating the key length of the algorithm Microsoft Word uses when encrypting documents with passwords.

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

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

value = instance.PasswordEncryptionKeyLength

Property Value

Type: System.Int32

Use the SetPasswordEncryptionOptions method to specify the key length Word uses when encrypting documents with passwords.

Show: