Table of Contents

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

text char[]
offset int
length int
paragraphEmbeddingLevel sbyte

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 sbyte

the externally supplied paragraph embedding level.

Fields

AL

Right-to-Left Arabic

public const sbyte AL = 4

Field Value

sbyte

AN

Arabic Number

public const sbyte AN = 11

Field Value

sbyte

B

Paragraph Separator

public const sbyte B = 15

Field Value

sbyte

BN

Boundary Neutral

public const sbyte BN = 14

Field Value

sbyte

CS

Common Number Separator

public const sbyte CS = 12

Field Value

sbyte

EN

European Number

public const sbyte EN = 8

Field Value

sbyte

ES

European Number Separator

public const sbyte ES = 9

Field Value

sbyte

ET

European Number Terminator

public const sbyte ET = 10

Field Value

sbyte

L

Left-to-right

public const sbyte L = 0

Field Value

sbyte

LRE

The bidi types

public const sbyte LRE = 1

Field Value

sbyte

LRO

Left-to-Right Override

public const sbyte LRO = 2

Field Value

sbyte

NSM

Non-Spacing Mark

public const sbyte NSM = 13

Field Value

sbyte

ON

Other Neutrals

public const sbyte ON = 18

Field Value

sbyte

PDF

Pop Directional Format

public const sbyte PDF = 7

Field Value

sbyte

R

Right-to-Left

public const sbyte R = 3

Field Value

sbyte

RLE

Right-to-Left Embedding

public const sbyte RLE = 5

Field Value

sbyte

RLO

Right-to-Left Override

public const sbyte RLO = 6

Field Value

sbyte

S

Segment Separator

public const sbyte S = 16

Field Value

sbyte

TYPE_MAX

Maximum bidi type value.

public const sbyte TYPE_MAX = 18

Field Value

sbyte

TYPE_MIN

Minimum bidi type value.

public const sbyte TYPE_MIN = 0

Field Value

sbyte

WS

Whitespace

public const sbyte WS = 17

Field Value

sbyte

Methods

GetBaseLevel()

Return the base level of the paragraph.

public sbyte GetBaseLevel()

Returns

sbyte

GetDirection(char)

public static sbyte GetDirection(char c)

Parameters

c char

Returns

sbyte

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