ooodev.format.inner.direct.write.frame.frame_type.size module
Module for Fill Transparency.
New in version 0.9.0.
- class ooodev.format.inner.direct.write.frame.frame_type.size.Size(width=None, height=None, auto_width=False, auto_height=False)[source]
Bases:
Size
Frame Type Size
New in version 0.9.0.
- __init__(width=None, height=None, auto_width=False, auto_height=False)[source]
Constructor
- Parameters:
width (RelativeSize, AbsoluteSize, optional) – width value.
height (RelativeSize, AbsoluteSize, optional) – height value.
auto_width (bool, optional) – Auto Size Width. Default
False
.auto_height (bool, optional) – Auto Size Height. Default
False
.
- Return type:
None
- apply(obj: Any)[source]
- apply(obj, **kwargs)
Applies style of current instance.
- Parameters:
obj (object) – UNO Object that styles are to be applied.
- Return type:
None
- copy()[source]
- copy(**kwargs)
- copy(**kwargs)
Gets a copy of instance as a new instance
- Return type:
TypeVar
(_TSize
, bound= Size)- Parameters:
self (_TSize) –
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO Object.
- Returns:
Instance that represents Frame size.
- Return type:
- property prop_auto_height: bool
Gets/Sets auto height.
- Return type:
bool
- property prop_auto_width: bool
Gets/Sets auto width.
- Return type:
bool
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_height: RelativeSize | AbsoluteSize | None
Gets/Sets height.
- Return type:
RelativeSize | AbsoluteSize | None
- property prop_width: RelativeSize | AbsoluteSize | None
Gets/Sets width.
- Return type:
RelativeSize | AbsoluteSize | None