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}} that represents whether or not Word will snap text to grid while in a table with inline objects in this document.{excerpt}
{signature:C#}
 public boolean AllowSnapInCells{ get; set; }
{signature}{signature:vb.net}
Public Property AllowSnapInCells() As Boolean
{signature}
{remarks}MS Word equivalent: Tools menu > Options... > Compatibility tab > Compatibility options for \[filename\].doc section > Options > Don't snap text to grid inside table with Inline objects

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

          //--- Return AllowSnapInCells
          bool allowSnapInCells = cs.AllowSnapInCells;

          //--- Set AllowSnapInCells
          cs.AllowSnapInCells = true;
        {code}
{code:vb.net|title=vb.net}

          '--- Return AllowSnapInCells
          Dim allowSnapInCells As Boolean = cs.AllowSnapInCells

          '--- Set AllowSnapInCells
          cs.AllowSnapInCells = True
        {code}

{example}