get_IsPasswordProtected()

VbaProject::get_IsPasswordProtected() method

Indicates whether the VBAProject is protected by a password to view project properties. Read-only bool.

bool Aspose::Slides::Vba::VbaProject::get_IsPasswordProtected() override

Remarks

auto presentation = System::MakeObject<Presentation>(path + u"demo.pptm");

if (presentation->get_VbaProject()->get_IsPasswordProtected())
{
    System::Console::WriteLine(System::String(u"The VBAProject '") + presentation->get_VbaProject()->get_Name() + u"' is protected by password to view project properties.");
}

See Also