ooodev.format.inner.direct.structs.size_struct module
- class ooodev.format.inner.direct.structs.size_struct.SizeStruct(width=0.0, height=0.0, all=None)[source]
Bases:
StructBaseSize struct.
Any properties starting with
prop_set or get current instance values.All methods starting with
fmt_can be used to chain together Border Table properties.- __init__(width=0.0, height=0.0, all=None)[source]
Constructor
- Parameters:
width (float, UnitT, optional) – Specifies width crop in
mmunits or Class UnitT. Default0.0.height (float, UnitT, optional) – Specifies height crop in
mmunits or Class UnitT. Default0.0.all (float, UnitT, optional) – Specifies
widthandheightinmmunits or Class UnitT. If set all other parameters are ignored.
- Return type:
None
- apply(obj: Any)[source]
- apply(obj, **kwargs)
Applies tab properties to
obj- Parameters:
obj (object) – UNO object.
- Return type:
None
- fmt_all(value)[source]
Gets copy of instance with width and height set.
- Parameters:
value (float, UnitT) – Specifies crop in
mmunits or Class UnitT.self (_TSizeStruct) –
- Returns:
Border Table
- Return type:
- fmt_height(value)[source]
Gets a copy of instance with height set.
- Parameters:
value (float, UnitT) – Specifies height in
mmunits or Class UnitT.self (_TSizeStruct) –
- Return type:
- fmt_width(value)[source]
Gets a copy of instance with width set.
- Parameters:
value (float, UnitT) – Specifies width in
mmunits or Class UnitT.self (_TSizeStruct) –
- Return type:
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO object
- Raises:
PropertyNotFoundError – If
objdoes not have required property- Returns:
SizeStructinstance that representsobjSize properties.- Return type:
- classmethod from_uno_struct(value)[source]
- classmethod from_uno_struct(value, **kwargs)
- classmethod from_uno_struct(value, **kwargs)
Converts a
Sizeinstance to aSizeStruct.- Parameters:
value (Size) – UNO
Size.- Returns:
SizeStructset withSizeproperties.- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: