Source code for ooodev.format.inner.modify.calc.border.padding

from __future__ import annotations
from typing import TYPE_CHECKING
import uno

from import Padding as DirectPadding

    from ooodev.units.unit_obj import UnitT

[docs]class Padding(DirectPadding): """ Border Padding Any properties starting with ``prop_`` set or get current instance values. All methods starting with ``fmt_`` can be used to chain together properties. .. seealso:: - :ref:`help_calc_format_modify_cell_borders` .. versionadded:: 0.9.0 """
[docs] def __init__( self, *, left: float | UnitT | None = None, right: float | UnitT | None = None, top: float | UnitT | None = None, bottom: float | UnitT | None = None, all: float | UnitT | None = None, ) -> None: """ Constructor Args: left (float, UnitT, optional): Left (in ``mm`` units) or :ref:`proto_unit_obj`. right (float, UnitT, optional): Right (in ``mm`` units) or :ref:`proto_unit_obj`. top (float, UnitT, optional): Top (in ``mm`` units) or :ref:`proto_unit_obj`. bottom (float, UnitT, optional): Bottom (in ``mm`` units) or :ref:`proto_unit_obj`. all (float, UnitT, optional): Left, right, top, bottom (in ``mm`` units) or :ref:`proto_unit_obj`. If argument is present then ``left``, ``right``, ``top``, and ``bottom`` arguments are ignored. Raises: ValueError: If any argument value is less than zero. Returns: None: See Also: - :ref:`help_calc_format_modify_cell_borders` """ super().__init__(left=left, right=right, top=top, bottom=bottom, all=all)