TemplateLinkedPosition Class
Provides a template field position which uses the linked field.
Inheritance Hierarchy

Namespace: GroupDocs.Parser.Templates
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 22.02.0
public sealed class TemplateLinkedPosition : TemplatePosition

The TemplateLinkedPosition type exposes the following members.

Public methodTemplateLinkedPosition(String, Size, TemplateLinkedPositionEdges)
Initializes a new instance of the TemplateLinkedPosition class.
Public methodTemplateLinkedPosition(String, Size, TemplateLinkedPositionEdges, Boolean)
Initializes a new instance of the TemplateLinkedPosition class.
Public propertyAutoScale
Gets the value that indicates whether SearchArea is scaled by the linked field size.
Public propertyEdges
Gets the edges of the linked field where a field is searched.
Public propertyLinkedFieldName
Gets the linked field name.
Public propertySearchArea
Gets the size of the area where a field is searched.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)

The following example shows the code for the situation if it's known that the field with an invoice number is placed on the right of "Invoice number" string the following code is used:

// Create a regex template field to find "Invoice Number" text
TemplateField invoice = new TemplateField(new TemplateRegexPosition("Invoice Number"), "Invoice");

// Create a related template field associated with "Invoice" field and extract the value on the right of it
TemplateField invoiceNumber = new TemplateField(
    new TemplateLinkedPosition("invoice", new Size(100, 15), new TemplateLinkedPositionEdges(false, false, true, false)),
See Also