IsProtected

VbaProject.IsProtected property

Shows whether the VbaProject is password protected.

public bool IsProtected { get; }

Examples

Shows whether the VbaProject is password protected.

Document doc = new Document(MyDir + "Vba protected.docm");
Assert.That(doc.VbaProject.IsProtected, Is.True);

See Also