ooodev.format.chart2.direct.general.position_size package

Module contents

class ooodev.format.chart2.direct.general.position_size.Position(pos_x, pos_y)[source]

Bases: StyleBase

Positions a shape.

New in version 0.9.4.

__init__(pos_x, pos_y)[source]

Constructor

Parameters:
  • pos_x (float, UnitT) – Specifies the x-coordinate of the position of the shape (in mm units) or Class UnitT.

  • pos_y (float, UnitT) – Specifies the y-coordinate of the position of the shape (in mm units) or Class UnitT.

Return type:

None

apply(obj, **kwargs)[source]

Applies position properties to obj

Parameters:

obj (Any) – UNO object.

Return type:

None

copy()[source]
copy(**kwargs)
copy(**kwargs)

Copy the current instance.

Returns:

The copied instance.

Return type:

Position

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Creates a new instance from obj.

Parameters:

obj (Any) – UNO Shape object.

Returns:

New instance.

Return type:

Position

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_pos_x: UnitMM

Gets or sets the x-coordinate of the position of the shape (in mm units).

Return type:

UnitMM

property prop_pos_y: UnitMM

Gets or sets the y-coordinate of the position of the shape (in mm units).

Return type:

UnitMM

class ooodev.format.chart2.direct.general.position_size.Size(width, height)[source]

Bases: StyleBase

Size of a shape.

New in version 0.9.4.

__init__(width, height)[source]

Constructor

Parameters:
  • width (float | UnitT) – Specifies the width of the shape (in mm units) or Class UnitT.

  • height (float | UnitT) – Specifies the height of the shape (in mm units) or Class UnitT.

Return type:

None

apply(obj, **kwargs)[source]

Applies properties to obj

Parameters:

obj (Any) – UNO object.

Return type:

None

copy()[source]
copy(**kwargs)
copy(**kwargs)

Copy the current instance.

Returns:

The copied instance.

Return type:

Size

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Creates a new instance from obj.

Parameters:

obj (Any) – UNO Shape object.

Returns:

New instance.

Return type:

Size

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_height: UnitMM

Gets or sets the height of the shape (in mm units).

Return type:

UnitMM

property prop_width: UnitMM

Gets or sets the width of the shape (in mm units).

Return type:

UnitMM