set_ReadOnlyRecommended()

ProtectionManager::set_ReadOnlyRecommended(bool) method

Sets read-only recommendation. Write bool.

void Aspose::Slides::ProtectionManager::set_ReadOnlyRecommended(bool value) override

Remarks

The following sample code shows you how to set a PowerPoint Presentation to Read-Only in C# using Aspose.Slides.

auto pres = System::MakeObject<Presentation>();
pres->get_ProtectionManager()->set_ReadOnlyRecommended(true);
pres->Save(u"ReadOnlyPresentation.pptx", SaveFormat::Pptx);

See Also