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

Properties

NameTypeDescription
ApplicationEngine, read-onlyReturns the Engine object.
ReadingTypeReadingTypeEnumSpecifies if the text on the page is written in horizontal lines, or vertical lines. This property is TRT\_Unknown by default.
RotationTypeRotationTypeEnumSpecifies 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

NameDescription
CopyFromInitializes properties of the current object with values of similar properties of another object.
IsEqualToChecks if the text orientation is equal to the specified orientation.
TextOrientation Object Diagram

Output parameter

This object is the output parameter of the following methods:

Input parameter

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

Samples

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;
 }
}

See also

TextBlock Working with Properties