public void DocRemoveProtect(DocX document, Boolean removeProtect) { if (removeProtect) { document.RemoveProtection(); } }