Source code for

from __future__ import annotations
from typing import Any, Tuple

from import Transparency as WriteTransparency
from ooodev.format.inner.kind.format_kind import FormatKind
from ooodev.loader import lo as mLo
from ooodev.utils.data_type.intensity import Intensity

[docs]class Transparency(WriteTransparency): """ Chart Wall Fill Transparency. .. seealso:: - :ref:`help_chart2_format_direct_wall_floor_transparency` .. versionadded:: 0.9.4 """
[docs] def __init__(self, value: Intensity | int = 0) -> None: """ Constructor Args: value (Intensity, int, optional): Specifies the transparency value from ``0`` to ``100``. Returns: None: See Also: - :ref:`help_chart2_format_direct_wall_floor_transparency` """ super().__init__(value=value)
def _supported_services(self) -> Tuple[str, ...]: try: return self._supported_services_values except AttributeError: self._supported_services_values = () return self._supported_services_values def _is_valid_obj(self, obj: Any) -> bool: return mLo.Lo.is_uno_interfaces(obj, "") @property def prop_format_kind(self) -> FormatKind: """Gets the kind of style""" try: return self._format_kind_prop except AttributeError: self._format_kind_prop = FormatKind.UNKNOWN return self._format_kind_prop