[]
        
(Showing Draft Content)

GC.Spread.Sheets.TextDirectionType

Enumeration: TextDirectionType

Spread.Sheets.TextDirectionType

Defines the type of the text direction.

example

//This example uses the TextDirectionType enumeration.
activeSheet.getCell(0, 0).textDirection(GC.Spread.Sheets.TextDirectionType.rightToLeft);
activeSheet.getRange(1, -1, 1, -1).textDirection(GC.Spread.Sheets.TextDirectionType.rightToLeft);
var style = new GC.Spread.Sheets.Style();
style.textDirection = GC.Spread.Sheets.TextDirectionType.rightToLeft;
activeSheet.setStyle(1, 1, style, GC.Spread.Sheets.SheetArea.viewport);

Table of contents

Enumeration members

Enumeration members

context

context = 0

Specifies the text direction is context dependent, which is determined by scanning the text for the first non-whitespace character: if it is a strong right-to-left character, the text direction is right-to-left; otherwise, the text direction is left-to-right.


leftToRight

leftToRight = 1

Specifies the text direction is left-to-right in the cell, as in English.


rightToLeft

rightToLeft = 2

Specifies the text direction is right-to-left in the cell, as in Arabic or Hebrew.