RemoveWriteProtection

ProtectionManager.RemoveWriteProtection méthode

Supprime la protection en écriture pour cette présentation.

public void RemoveWriteProtection()

Exemples

Ce code d’exemple montre comment supprimer la protection en écriture d’une présentation PowerPoint.

[C#]
using (Presentation presentation = new Presentation("pres.pptx"))
{
    presentation.ProtectionManager.RemoveWriteProtection();
    presentation.Save("write-protection-removed.pptx", SaveFormat.Pptx);
}

Voir aussi