ooodev.format.inner.direct.chart2.title.alignment.direction module

class ooodev.format.inner.direct.chart2.title.alignment.direction.Direction(mode=DirectionModeKind.PAGE)[source]

Bases: AbstractWritingMode

Title Text Direction.

Any properties starting with prop_ set or get current instance values.

All methods starting with fmt_ can be used to chain together properties.

New in version 0.9.4.

__init__(mode=DirectionModeKind.PAGE)[source]

Constructor

Parameters:

mode (DirectionModeKind, optional) – Specifies the writing direction.

Return type:

None

fmt_mode(value)[source]

Gets copy of instance with writing mode set or removed

Parameters:

value (DirectionModeKind | None) – mode value

Returns:

Direction instance.

Return type:

Direction

property lr_tb: Direction

Gets instance.

Text within lines is written left-to-right. Lines and blocks are placed top-to-bottom. Typically, this is the writing mode for normal alphabetic text.

Return type:

Direction

property page: Direction

Gets instance.

Use super-ordinate object settings.

Return type:

Direction

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_mode: DirectionModeKind

Gets/Sets writing mode.

Return type:

DirectionModeKind

property rl_tb: Direction

Gets instance.

Text within a line are written right-to-left. Lines and blocks are placed top-to-bottom. Typically, this writing mode is used in Arabic and Hebrew text.

Return type:

Direction

class ooodev.format.inner.direct.chart2.title.alignment.direction.DirectionModeKind(value)[source]

Bases: Enum

Describes different text directions.

LR_TB = 0

Left-to-right (LTR)

Text within lines is written left-to-right. Lines and blocks are placed top-to-bottom. Typically, this is the writing mode for normal alphabetic text.

PAGE = 4

Use super-ordinate object settings

Obtain writing mode from the current page. May not be used in page styles.

RL_TB = 1

Right-to-left (RTL).

text within a line are written right-to-left. Lines and blocks are placed top-to-bottom. Typically, this writing mode is used in Arabic and Hebrew text.