_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)

Syntax

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

value = instance.PasswordEncryptionKeyLength
int PasswordEncryptionKeyLength { get; }

Property Value

Type: System.Int32

Remarks

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

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace