Aspose::Words::Settings::WriteProtection class. Specifies write protection settings for a document. To learn more, visit the documentation article in C++....more, visit the Protect or Encrypt a Document documentation article...programmatically, nor does it encrypt the contents. doc -> Save (...