Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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.

 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}
Signature
C#C#
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}{signature:vb.net
vb.net
}
Public Property DisplayFieldResults() As Boolean
Remarks

This option is set to true by default.

MS Word equivalent: Tools menu >
{signature}
{remarks}This option is set to true by default.

MS Word equivalent: Tools menu > Options... > View tab > Show section > Field
codes
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle