Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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:vb.net}
Public ReadOnly Property DocumentProtection() As DocumentProtection
{signature}
{remarks}MS Word equivalent: Tools menu > Protect document... \(plus some additional settings\)

{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}