# GrapeCity.Documents.Word.EditProtection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_EditProtection" data-uid="GrapeCity.Documents.Word.EditProtection" class="text-break">EditProtection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the edit protection settings of 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">EditProtection</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_EditProtection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class EditProtection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class EditProtection</code></pre>
  </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_EditProtection_AllowAutoformatToOverrideFormatRestrictions" data-uid="GrapeCity.Documents.Word.EditProtection.AllowAutoformatToOverrideFormatRestrictions">
          <a class="xref" href="GrapeCity.Documents.Word.EditProtection.AllowAutoformatToOverrideFormatRestrictions.html#GrapeCity_Documents_Word_EditProtection_AllowAutoformatToOverrideFormatRestrictions">AllowAutoformatToOverrideFormatRestrictions</a>
        </td>
        <td class="markdown level1 summary"><p>When set, overrides the <a class="xref" href="GrapeCity.Documents.Word.EditProtection.LimitFormattingToUnlockedStyles.html#GrapeCity_Documents_Word_EditProtection_LimitFormattingToUnlockedStyles">LimitFormattingToUnlockedStyles</a> mode for autoformat.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_EditProtection_EditMode" data-uid="GrapeCity.Documents.Word.EditProtection.EditMode">
          <a class="xref" href="GrapeCity.Documents.Word.EditProtection.EditMode.html#GrapeCity_Documents_Word_EditProtection_EditMode">EditMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the protection mode.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_EditProtection_IsActive" data-uid="GrapeCity.Documents.Word.EditProtection.IsActive">
          <a class="xref" href="GrapeCity.Documents.Word.EditProtection.IsActive.html#GrapeCity_Documents_Word_EditProtection_IsActive">IsActive</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to apply protection mode defined in this class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_EditProtection_LimitFormattingToUnlockedStyles" data-uid="GrapeCity.Documents.Word.EditProtection.LimitFormattingToUnlockedStyles">
          <a class="xref" href="GrapeCity.Documents.Word.EditProtection.LimitFormattingToUnlockedStyles.html#GrapeCity_Documents_Word_EditProtection_LimitFormattingToUnlockedStyles">LimitFormattingToUnlockedStyles</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether formatting restrictions are applied to the document.</p>
<p>
If true, prevents the use of direct formatting and the use of styles 
with the <a class="xref" href="GrapeCity.Documents.Word.Style.Locked.html#GrapeCity_Documents_Word_Style_Locked">Locked</a> property value of true.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_EditProtection_Password" data-uid="GrapeCity.Documents.Word.EditProtection.Password">
          <a class="xref" href="GrapeCity.Documents.Word.EditProtection.Password.html#GrapeCity_Documents_Word_EditProtection_Password">Password</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the password.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
