Workbook.PasswordEncryptionKeyLength Property

Definition

Gets the key length of the algorithm that Microsoft Office Excel uses when encrypting passwords for the workbook.

public:
 property int PasswordEncryptionKeyLength { int get(); };
public int PasswordEncryptionKeyLength { get; }
member this.PasswordEncryptionKeyLength : int
Public ReadOnly Property PasswordEncryptionKeyLength As Integer

Property Value

The key length of the algorithm that Excel uses when encrypting passwords for the workbook.

Remarks

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

Applies to