Search Results for

    Show / Hide Table of Contents

    Class OcrResult.TextFlow

    Describes text direction

    Inheritance
    System.Object
    OcrResult.TextFlow
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public sealed class TextFlow : Enum

    TextFlow reports the reading direction OCR detected for a piece of recognized text, read from the TextDirection property of any result element. LeftToRight is the common case for languages such as English, RightToLeft covers scripts such as Arabic, and TopToBottom marks the vertical flow found in some East Asian writing. Check TextDirection when layout or ordering depends on the script, rather than assuming left-to-right. The reading results how-to reads element properties, and international languages shows OCR across scripts.

    if (word.TextDirection == OcrResult.TextFlow.RightToLeft) { /* handle RTL */ }

    Fields

    LeftToRight

    LTR Languages such as English.

    Declaration
    public const OcrResult.TextFlow LeftToRight
    Field Value
    Type Description
    OcrResult.TextFlow

    RightToLeft

    RTL Languages such as Arabic.

    Declaration
    public const OcrResult.TextFlow RightToLeft
    Field Value
    Type Description
    OcrResult.TextFlow

    TopToBottom

    Vertical languages such as found in some forms of East Asian script.

    Declaration
    public const OcrResult.TextFlow TopToBottom
    Field Value
    Type Description
    OcrResult.TextFlow

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget