TemplateFixedPosition Class
Provides a template field position which is defined by the rectangular area.
Inheritance Hierarchy

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

The TemplateFixedPosition type exposes the following members.

Constructors
  NameDescription
Public methodTemplateFixedPosition
Initializes a new instance of the TemplateFixedPosition class.
Properties
  NameDescription
Public propertyRectangle
Gets the rectangular area that contains the template field.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples

This is simplest way to define the field position. It requires to set a rectangular area on the page that bounds the field value. All the text that is contained (even partially) into the rectangular area will be extracted as a value:

C#
// Create a fixed template field with "Address" name which is bounded by a rectangle at the position (35, 160) and with the size (110, 20)
TemplateField templateField = new TemplateField(
    new TemplateFixedPosition(new Rectangle(new Point(35, 160), new Size(110, 20))),
    "Address");
See Also