Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets or returns a boolean representing whether or not Word will enforce document protection in this document.

 Document

{remarks}
{example}{code:csharp|title=C#}

          //--- Get EnforceDocumentProtection
          bool enforceDocumentProtection = docProtect.EnforceDocumentProtection;

          //--- Set EnforceDocumentProtection
          docProtect.EnforceDocumentProtection = true;
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get EnforceDocumentProtection
          Dim enforceDocumentProtection As Boolean = docProtect.EnforceDocumentProtection

          '--- Set EnforceDocumentProtection
          docProtect.EnforceDocumentProtection = True
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns a {{boolean}} representing whether or not Word will enforce document protection in this document.{excerpt}
{signature:C#}
 public boolean EnforceDocumentProtection{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property EnforceDocumentProtection() As Boolean
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Protect = Tools menu > Protect Document... > 3. Start enforcement section > Yes, Start Enforcing Protection button & Unprotect = Tools menu > Unprotect
Document
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle