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 Word will display field results \(true\) or just the field text itself \(false\) in a document. For example, when set to true you will see the full contents of a mergefield instead of just the text value inside it.{excerpt}
{signature:C#}
 public boolean DisplayFieldResults{ get; set; }
{signature}{signature:vb.net}
Public Property DisplayFieldResults() As Boolean
{signature}
{remarks}This option is set to true by default.

MS Word equivalent: Tools menu > Options... > View tab > Show section > Field codes

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

          //--- Return DisplayFieldResults
          bool displayFieldResults = oWordViewettings.DisplayFieldResults;

          //--- Set DisplayFieldResults
          viewSettings.DisplayFieldResults = false;
        {code}
{code:vb.net|title=vb.net}

          '--- Return DisplayFieldResults
          Dim displayFieldResults As Boolean = viewSettings.DisplayFieldResults

          '--- Set DisplayFieldResults
          viewSettings.DisplayFieldResults = False
        {code}

{example}