# GrapeCity.Documents.Word.DocumentProtection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_DocumentProtection" data-uid="GrapeCity.Documents.Word.DocumentProtection" class="text-break">DocumentProtection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the set of document protection restrictions
applied to a document.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DocumentProtection</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_DocumentProtection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DocumentProtection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DocumentProtection</code></pre>
  </div>
  <h5 id="GrapeCity_Documents_Word_DocumentProtection_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>These restrictions should be enforced by applications editing this document
when the IsActive property is turned on, and ignored (but persisted) otherwise.
Document protection is a set of restrictions used to prevent unintentional changes
to all or part of a document.<br>
This protection does not encrypt the document, and malicious applications
might circumvent its use. This protection is not intended as a security feature.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentProtection_BlockQuickStylesetSwitching" data-uid="GrapeCity.Documents.Word.DocumentProtection.BlockQuickStylesetSwitching">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentProtection.BlockQuickStylesetSwitching.html#GrapeCity_Documents_Word_DocumentProtection_BlockQuickStylesetSwitching">BlockQuickStylesetSwitching</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the replacement of the
complete set of the document's styles should be blocked.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentProtection_BlockThemeOrSchemeSwitching" data-uid="GrapeCity.Documents.Word.DocumentProtection.BlockThemeOrSchemeSwitching">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentProtection.BlockThemeOrSchemeSwitching.html#GrapeCity_Documents_Word_DocumentProtection_BlockThemeOrSchemeSwitching">BlockThemeOrSchemeSwitching</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether modification of the document's theme
information should be blocked.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentProtection_EditProtection" data-uid="GrapeCity.Documents.Word.DocumentProtection.EditProtection">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentProtection.EditProtection.html#GrapeCity_Documents_Word_DocumentProtection_EditProtection">EditProtection</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the type of editing restrictions which shall be
enforced on the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentProtection_MarkAsFinal" data-uid="GrapeCity.Documents.Word.DocumentProtection.MarkAsFinal">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentProtection.MarkAsFinal.html#GrapeCity_Documents_Word_DocumentProtection_MarkAsFinal">MarkAsFinal</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the document is marked as final (read-only).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentProtection_ReadOnlyRecommended" data-uid="GrapeCity.Documents.Word.DocumentProtection.ReadOnlyRecommended">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentProtection.ReadOnlyRecommended.html#GrapeCity_Documents_Word_DocumentProtection_ReadOnlyRecommended">ReadOnlyRecommended</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether read-only mode is recommended
when opening the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentProtection_WritePassword" data-uid="GrapeCity.Documents.Word.DocumentProtection.WritePassword">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentProtection.WritePassword.html#GrapeCity_Documents_Word_DocumentProtection_WritePassword">WritePassword</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the write password.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
