Table of Contents

Class DocumentProtectionEditingExtensions

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

The document's protection settings (w:documentProtection, w:writeProtection) changed as an edit (Phase 157, WQ-0130): what Word's Restrict Editing starts and stops.

public static class DocumentProtectionEditingExtensions
Inheritance
DocumentProtectionEditingExtensions
Inherited Members

Methods

SetDocumentProtection(WordDocument, DocumentPosition, Action<DocumentProtection>)

Changes the document's protection settings as one undoable edit. change is given a copy of the settings as they are and changes it; the copy then takes the settings' place, and undo puts the settings back exactly as they were, password material included. No paragraph changes: the layout is not affected.