## WriteProtection class Specifies write protection settings for a Document. To learn more, visit the [Protect or Encrypt a Document](https://Docs.aspose.com/words/cpp/protect-or-encrypt-a-Document......Encrypt a Document](https://docs.aspose.com/words/cpp/protec...with a password. ```cpp auto doc = System::MakeObject<Aspose:...