TemplateLinkedPosition Class
Provides a template field position which uses the linked field.
Inheritance Hierarchy
SystemObject
  GroupDocs.Parser.TemplatesTemplatePosition
    GroupDocs.Parser.TemplatesTemplateLinkedPosition

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

The TemplateLinkedPosition type exposes the following members.

Constructors
  NameDescription
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.
Properties
  NameDescription
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.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples

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:

C#
// 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)),
    "InvoiceNumber");
See Also