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.True(doc.VbaProject.IsProtected);

See Also