Enum TextDirectionType

TextDirectionType enumeration

Represents the direction of the text flow for this paragraph.

public enum TextDirectionType

Values

NameValueDescription
Context0
LeftToRight1
RightToLeft2

Examples

// Called: style.TextDirection = TextDirectionType.RightToLeft;
public void Cells_Type_TextDirectionType()
{
    Workbook workbook = new Workbook();
    Cells cells = workbook.Worksheets[0].Cells;
    Style style = cells[1, 1].GetStyle();
    style.TextDirection = TextDirectionType.RightToLeft;
    cells[1, 1].SetStyle(style);

    checkTextDirectionType_RightToLeft(workbook);
    workbook = Util.ReSave(workbook, SaveFormat.Excel97To2003);
    checkTextDirectionType_RightToLeft(workbook);
    workbook = Util.ReSave(workbook, SaveFormat.Xlsx);
    checkTextDirectionType_RightToLeft(workbook);
    workbook = Util.ReSave(workbook, SaveFormat.SpreadsheetML);
    checkTextDirectionType_RightToLeft(workbook);
    workbook = Util.ReSave(workbook, SaveFormat.Excel97To2003);
}

See Also