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}Sets or returns a {{boolean}} representing whether or not Word will lock the Styles in this document.{excerpt}
{signature:C#}
 public boolean StylesLocked{ get; set; }
{signature}{signature:vb.net}
Public Property StylesLocked() As Boolean
{signature}
{example}{code:csharp|title=C#}

          //--- Get StylesLocked
          bool stylesLocked = docProtect.StylesLocked;

          //--- Set StylesLocked
          oDocumentProperties.StylesLocked = true;
        {code}
{code:vb.net|title=vb.net}

          '--- Get StylesLocked
          Dim stylesLocked As Boolean = docProtect.StylesLocked

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

{example}