ooodev.format.inner.direct.draw.shape.line.corner_caps module

class ooodev.format.inner.direct.draw.shape.line.corner_caps.CornerCaps(corner_style=LineJoint.ROUND, cap_style=LineCap.BUTT)[source]

Bases: StyleBase

This class represents the line corner and cap styles of a shape.

__init__(corner_style=LineJoint.ROUND, cap_style=LineCap.BUTT)[source]

Constructor.

Parameters:
  • corner_style (LineJoint, optional) – Corner style. Defaults to LineJoint.ROUND.

  • cap_style (LineCap, optional) – Cap style. Defaults to LineCap.BUTT.

Return type:

None

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

Creates a new instance from obj.

Parameters:

obj (Any) – UNO Shape object.

Returns:

New instance.

Return type:

LineProperties

property prop_cap_style: LineCap

Gets/Sets the color.

Return type:

LineCap

property prop_corner_style: LineJoint

Gets/Sets the color.

Return type:

LineJoint

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind