Share via


Workbook.HasPassword Property

Definition

Gets a value that indicates whether the workbook has a protection password.

public:
 property bool HasPassword { bool get(); };
public bool HasPassword { get; }
member this.HasPassword : bool
Public ReadOnly Property HasPassword As Boolean

Property Value

true if the workbook has a protection password; otherwise, false.

Applies to