TemplateLinkedPosition Class |
Namespace: GroupDocs.Parser.Templates
The TemplateLinkedPosition type exposes the following members.
Name | Description | |
---|---|---|
![]() | TemplateLinkedPosition(String, Size, TemplateLinkedPositionEdges) |
Initializes a new instance of the TemplateLinkedPosition class.
|
![]() | TemplateLinkedPosition(String, Size, TemplateLinkedPositionEdges, Boolean) |
Initializes a new instance of the TemplateLinkedPosition class.
|
Name | Description | |
---|---|---|
![]() | AutoScale |
Gets the value that indicates whether SearchArea is scaled by the linked field size.
|
![]() | Edges |
Gets the edges of the linked field where a field is searched.
|
![]() | LinkedFieldName |
Gets the linked field name.
|
![]() | SearchArea |
Gets the size of the area where a field is searched.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (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)), "InvoiceNumber");