Page tree

Versions Compared

Key

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

Excerpt

Returns a DocumentProtection object that can be used to get and set the protection settings that Word will apply to this document. (Only applicable to Word 2000 or above documents.)

\)

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

          DocumentProtection oDocumentProtection = oDocument.DocumentProtection;
        
{code}
{code:vb.net
|title=vb.net
}

          Dim oDocumentProtection As DocumentProtection = oDocument.DocumentProtection
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns a [DocumentProtection|DocumentProtection] object that can be used to get and set the protection settings that Word will apply to this document. \(Only applicable to Word 2000 or above documents.\){excerpt}
{signature:C#}
 public DocumentProtection DocumentProtection{ get; }
Signature
{signature}{signature:vb.net
vb.net
}
Public ReadOnly Property DocumentProtection() As DocumentProtection
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Tools menu > Protect document... \(plus some additional settings
)
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle