Class BidiOrder
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
public sealed class BidiOrder
- Inheritance
-
BidiOrder
- Inherited Members
Constructors
BidiOrder(char[], int, int, sbyte)
public BidiOrder(char[] text, int offset, int length, sbyte paragraphEmbeddingLevel)
Parameters
BidiOrder(sbyte[])
Initialize using an array of direction types. Types range from TYPE_MIN to TYPE_MAX inclusive and represent the direction codes of the characters in the text.
public BidiOrder(sbyte[] types)
Parameters
types
sbyte[]the types array
BidiOrder(sbyte[], sbyte)
Initialize using an array of direction types and an externally supplied paragraph embedding level. The embedding level may be -1, 0, or 1. -1 means to apply the default algorithm (rules P2 and P3), 0 is for LTR paragraphs, and 1 is for RTL paragraphs.
public BidiOrder(sbyte[] types, sbyte paragraphEmbeddingLevel)
Parameters
types
sbyte[]the types array
paragraphEmbeddingLevel
sbytethe externally supplied paragraph embedding level.
Fields
AL
Right-to-Left Arabic
public const sbyte AL = 4
Field Value
AN
Arabic Number
public const sbyte AN = 11
Field Value
B
Paragraph Separator
public const sbyte B = 15
Field Value
BN
Boundary Neutral
public const sbyte BN = 14
Field Value
CS
Common Number Separator
public const sbyte CS = 12
Field Value
EN
European Number
public const sbyte EN = 8
Field Value
ES
European Number Separator
public const sbyte ES = 9
Field Value
ET
European Number Terminator
public const sbyte ET = 10
Field Value
L
Left-to-right
public const sbyte L = 0
Field Value
LRE
The bidi types
public const sbyte LRE = 1
Field Value
LRO
Left-to-Right Override
public const sbyte LRO = 2
Field Value
NSM
Non-Spacing Mark
public const sbyte NSM = 13
Field Value
ON
Other Neutrals
public const sbyte ON = 18
Field Value
Pop Directional Format
public const sbyte PDF = 7
Field Value
R
Right-to-Left
public const sbyte R = 3
Field Value
RLE
Right-to-Left Embedding
public const sbyte RLE = 5
Field Value
RLO
Right-to-Left Override
public const sbyte RLO = 6
Field Value
S
Segment Separator
public const sbyte S = 16
Field Value
TYPE_MAX
Maximum bidi type value.
public const sbyte TYPE_MAX = 18
Field Value
TYPE_MIN
Minimum bidi type value.
public const sbyte TYPE_MIN = 0
Field Value
WS
Whitespace
public const sbyte WS = 17
Field Value
Methods
GetBaseLevel()
Return the base level of the paragraph.
public sbyte GetBaseLevel()
Returns
GetDirection(char)
public static sbyte GetDirection(char c)
Parameters
c
char
Returns
GetLevels()
public byte[] GetLevels()
Returns
- byte[]
GetLevels(int[])
public byte[] GetLevels(int[] linebreaks)
Parameters
linebreaks
int[]the offsets at which to break the paragraph
Returns
- byte[]
the resolved levels of the text