> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TextOrientation Object (ITextOrientation Interface)

This object represents the position of a text relative to the normal reading position.

## Properties

| Name         | Type                                                                                                                                                                                                          | Description                                                                                                                                                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Application  | [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Returns the Engine object.                                                                                                                                                                   |
| ReadingType  | [ReadingTypeEnum](/fine-reader/engine/api-reference/enumerations/readingtypeenum)                                                                                                                             | Specifies if the text on the page is written in horizontal lines, or vertical lines. This property is TRT\\\_Unknown by default.                                                             |
| RotationType | [RotationTypeEnum](/fine-reader/engine/api-reference/enumerations/rotationtypeenum)                                                                                                                           | Specifies the orientation of a text on a page relative to the normal reading position of the page. This property is RT\\\_NoRotation by default, which means that the orientation is normal. |

## Methods

| Name                                                                                                                  | Description                                                                                       |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [CopyFrom](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/copyfrom-method) | Initializes properties of the current object with values of similar properties of another object. |
| [IsEqualTo](/fine-reader/engine/api-reference/text-related-objects/textorientation/isequalto-method)                  | Checks if the text orientation is equal to the specified orientation.                             |

## Related objects

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/textorientation.gif?s=b37ac3d8d568685757d9df7b05282502" alt="TextOrientation" width="125" height="80" data-path="images/fine-reader/engine/textorientation.gif" />[](/fine-reader/engine/api-reference/text-related-objects/text)[](/fine-reader/engine/api-reference/layout-related-objects/textblock)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Output parameter

This object is the output parameter of the following methods:

* [CreateTextOrientation](/fine-reader/engine/api-reference/engine-object-iengine-interface/creation-methods/createlessobjectgreater-methods) method of the [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface) object
* [DetectOrientation](/fine-reader/engine/api-reference/document-related-objects/frpage/detectorientation-method) method of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object

## Input parameter

This object is passed as an input parameter to the following methods:

* [FindPageSplitPosition](/fine-reader/engine/api-reference/document-related-objects/frpage/findpagesplitposition-method) method of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object

## Samples

<Accordion title="C# code">
  ```csharp theme={null}
  FREngine.IFRDocument frdoc;
  // Get orientation for every page
  int pagesCount = frDoc.Pages.Count;
  FREngine.RotationTypeEnum[] rotations = new FREngine.RotationTypeEnum[pagesCount];
  for (int i = 0; i < pagesCount; i++)
  {
   FREngine.IFRPage page = frDoc.Pages[i];
   FREngine.ITextOrientation ori = page.DetectOrientation(null, ppp.ObjectsExtractionParams, ppp.RecognizerParams);
   rotations[i] = FREngine.RotationTypeEnum.RT_UnknownRotation;
   if( ori != null ) {
    rotations[i] = ori.RotationType;
   }
  }
  ```
</Accordion>

## See also

[TextBlock](/fine-reader/engine/api-reference/layout-related-objects/textblock)

[Working with Properties](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
