Message-ID: <2041775978.10011.1711709072903.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10010_1377005150.1711709072903" ------=_Part_10010_1377005150.1711709072903 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html WordTemplate.FieldMarkers

WordTemplate.FieldMarkers

Description

Returns the names of all merge fields in the main document.=20
C#
=20
public System.String[] FieldMarkers{ get; }=20
=20
vb.net
=20
Public ReadOnly Property FieldMarkers() As Strin=
g()
=20
=20

Remarks

The main document= is any part of the template that is not within a repeat block. (A repeat b= lock is a fragment in the template document - defined by a Word bookmark - = that contains merge fields and that will be repeated for each row in a data= source.)=20

Examples

=20
C#
=20
          //--- Create the WordTemplate object.
          WordTemplate oWW =3D new WordTemplate();

          //--- Open a template using a string.
          oWW.Open(@"C:\template.doc");

          //--- Get all the merge fields in the document.
          String[] allMergefields =3D oWW.FieldMarkers;
        
=20
vb.net
=20
          '--- Create the WordTemplate object.
          Dim oWW As New WordTemplate()

          '--- Open a template using a string.
          oWW.Open("C:\template.doc")

          '--- Get all the merge fields in the document.
          Dim allMergefields As String() =3D oWW.FieldMarkers
        
=20
------=_Part_10010_1377005150.1711709072903--