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
{introducedin: 8.1}
{description}

{excerpt}Gets or sets whether IF fields will be unlinked from the document after they are evaluated.

{excerpt}
{signature:C#}
public boolean UnlinkIfFields{get;set; }
{signature}
{signature:vb.net}
Public Property UnlinkIfFields()As Boolean
{signature}
{remarks}
*This feature is available in OOXML files (DOCX/DOCM) only.*

This property will only take effect if UpdateIfFields is set to true.
If set to true, all IF fields on the template will be removed after they are evaluated on the server side by the WordTemplate object.  If set to false, the IF fields will remain in place whether or not they have been evaluated.
The result of the IF field and any contained mergefields will still be in the final document.

{remarks}
{example}
{code:csharp|title=C#}
WordTemplate WordTempl =new WordTemplate();
WordTempl.UnlinkIfFields =true;
{code}
{code:vb.net|title=vb.net}
Dim WordTemplAs New WordTemplate()
WordTempl.UnlinkIfFields =True
{code}

{example}