# GrapeCity.SpreadBuilder.DDSecurity

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_SpreadBuilder_DDSecurity" data-uid="GrapeCity.SpreadBuilder.DDSecurity" class="text-break">DDSecurity Class
</h1>
  <div class="markdown level0 summary"><p>Encapsulates the information required for spreadsheet document security and encryption.</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">DDSecurity</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.SpreadBuilder.html">GrapeCity.SpreadBuilder</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.SpreadBuilder.dll</h6>
  <h5 id="GrapeCity_SpreadBuilder_DDSecurity_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DDSecurity</code></pre>
  </div>
  <h5 id="GrapeCity_SpreadBuilder_DDSecurity_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>If a WritePassword or a Password is supplied the spreadsheet application will prompt for a write or open access password.
If a WritePassword or a Password is not supplied no password will be requested to open the document.
By correctly supplying the Password, the user will be able to open the document.
By correctly supplying the WritePassword, the user will be able to write the document.
If the read only recommended is set to true, the Excel application will prompt user whether to open document as read-only.</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_SpreadBuilder_DDSecurity_Password" data-uid="GrapeCity.SpreadBuilder.DDSecurity.Password">
          <a class="xref" href="GrapeCity.SpreadBuilder.DDSecurity.Password.html#GrapeCity_SpreadBuilder_DDSecurity_Password">Password</a>
        </td>
        <td class="markdown level1 summary"><p>Get or set the password that is required to open a spreadsheet document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_DDSecurity_ProtectedBy" data-uid="GrapeCity.SpreadBuilder.DDSecurity.ProtectedBy">
          <a class="xref" href="GrapeCity.SpreadBuilder.DDSecurity.ProtectedBy.html#GrapeCity_SpreadBuilder_DDSecurity_ProtectedBy">ProtectedBy</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the user name that is responsible for protecting the spreadsheet document with a password.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_DDSecurity_ReadOnlyRecommended" data-uid="GrapeCity.SpreadBuilder.DDSecurity.ReadOnlyRecommended">
          <a class="xref" href="GrapeCity.SpreadBuilder.DDSecurity.ReadOnlyRecommended.html#GrapeCity_SpreadBuilder_DDSecurity_ReadOnlyRecommended">ReadOnlyRecommended</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value that indicates whether the spreadsheet document has been saved in the recommended read-only mode.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_DDSecurity_WritePassword" data-uid="GrapeCity.SpreadBuilder.DDSecurity.WritePassword">
          <a class="xref" href="GrapeCity.SpreadBuilder.DDSecurity.WritePassword.html#GrapeCity_SpreadBuilder_DDSecurity_WritePassword">WritePassword</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a password that prevents the spreadsheet document from being modified.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
