Search Results for

    Show / Hide Table of Contents

    Class Direction

    Specifies the text direction in a document.

    Inheritance
    System.Object
    Direction
    Namespace: IronWord.Models.Enums
    Assembly: IronWord.dll
    Syntax
    public sealed class Direction : Enum

    Set the reading direction of text in a Word document with Direction. LeftToRight is the default flow used by Latin scripts and most layouts, while RightToLeft lays out runs for languages such as Arabic and Hebrew. Apply it when a paragraph or run needs the opposite orientation from the document default. The add styled text example shows where run-level formatting is applied.

    var direction = Direction.RightToLeft;

    Fields

    LeftToRight

    Text flows from left to right.

    Declaration
    public const Direction LeftToRight
    Field Value
    Type Description
    Direction

    RightToLeft

    Text flows from right to left.

    Declaration
    public const Direction RightToLeft
    Field Value
    Type Description
    Direction

    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