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

...

Introducedin
8.1

...

8.1
Description

Excerpt

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

Signature
C#
C#
public boolean UnlinkIfFields{get;set; }
{signature}
{signature:
}
Signature
vb.net
vb.net
Public Property UnlinkIfFields()As Boolean
{signature}
{remarks}
*This feature is available in OOXML files 
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#}

Example
Code Block
csharp
csharp
titleC#

WordTemplate WordTempl =new WordTemplate();
WordTempl.UnlinkIfFields =true;
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim WordTemplAs New WordTemplate()
WordTempl.UnlinkIfFields =True
{code} {example}