# GrapeCity.Documents.Excel.WriteProtection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_WriteProtection" data-uid="GrapeCity.Documents.Excel.WriteProtection" class="text-break">WriteProtection Class
</h1>
  <div class="markdown level0 summary"><p>Provides access to the workbook write protection options.</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">WriteProtection</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_WriteProtection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class WriteProtection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class WriteProtection</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_Excel_WriteProtection_ReadOnlyRecommended" data-uid="GrapeCity.Documents.Excel.WriteProtection.ReadOnlyRecommended">
          <a class="xref" href="GrapeCity.Documents.Excel.WriteProtection.ReadOnlyRecommended.html#GrapeCity_Documents_Excel_WriteProtection_ReadOnlyRecommended">ReadOnlyRecommended</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates if the Read Only Recommended option is selected.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_WriteProtection_WritePassword" data-uid="GrapeCity.Documents.Excel.WriteProtection.WritePassword">
          <a class="xref" href="GrapeCity.Documents.Excel.WriteProtection.WritePassword.html#GrapeCity_Documents_Excel_WriteProtection_WritePassword">WritePassword</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the protected password to modify the file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_WriteProtection_WriteReserved" data-uid="GrapeCity.Documents.Excel.WriteProtection.WriteReserved">
          <a class="xref" href="GrapeCity.Documents.Excel.WriteProtection.WriteReserved.html#GrapeCity_Documents_Excel_WriteProtection_WriteReserved">WriteReserved</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether this workbook is write protected.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_WriteProtection_WriteReservedBy" data-uid="GrapeCity.Documents.Excel.WriteProtection.WriteReservedBy">
          <a class="xref" href="GrapeCity.Documents.Excel.WriteProtection.WriteReservedBy.html#GrapeCity_Documents_Excel_WriteProtection_WriteReservedBy">WriteReservedBy</a>
        </td>
        <td class="markdown level1 summary"><p>Gets and sets the name of the user who currently has write permission for the workbook.<br>If you don't explicitly specify this property, the value will come from the <b>IWorkbook.Author</b>, and if the <b>IWorkbook.Author</b> is empty string or null, the value will be <b>&quot;Document Solution for Excel&quot;</b>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_WriteProtection_ValidatePassword_System_String_" data-uid="GrapeCity.Documents.Excel.WriteProtection.ValidatePassword(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.WriteProtection.ValidatePassword.html#GrapeCity_Documents_Excel_WriteProtection_ValidatePassword_System_String_">ValidatePassword(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the specified password is the same as the write-protection password the file was protected with.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
