
    Mi                    R    S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	   " S S\
5      rg)	z-DrawingML objects related to line formatting.    )annotations)
FillFormat)MSO_FILL)Emulazypropertyc                     ^  \ rS rSrSrU 4S jr\S 5       r\S 5       r	\	R                  S 5       r	\S 5       r\S 5       r\R                  S	 5       rS
 r\S 5       rSrU =r$ )
LineFormat
   zProvides access to line properties such as color, style, and width.

A LineFormat object is typically accessed via the ``.line`` property of
a shape such as |Shape| or |Picture|.
c                6   > [         [        U ]  5         Xl        g N)superr	   __init___parent)selfparent	__class__s     g/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/pptx/dml/line.pyr   LineFormat.__init__   s    j$(*    c                    U R                   R                  [        R                  :w  a  U R                   R	                  5         U R                   R
                  $ )ae  
The |ColorFormat| instance that provides access to the color settings
for this line. Essentially a shortcut for ``line.fill.fore_color``.
As a side-effect, accessing this property causes the line fill type
to be set to ``MSO_FILL.SOLID``. If this sounds risky for your use
case, use ``line.fill.type`` to non-destructively discover the
existing fill type.
)filltyper   SOLIDsolid
fore_colorr   s    r   colorLineFormat.color   s6     99>>X^^+IIOOyy###r   c                :    U R                   nUc  gUR                  $ )a;  Return value indicating line style.

Returns a member of :ref:`MsoLineDashStyle` indicating line style, or
|None| if no explicit value has been set. When no explicit value has
been set, the line dash style is inherited from the style hierarchy.

Assigning |None| removes any existing explicitly-defined dash style.
N)_lnprstDash_valr   lns     r   
dash_styleLineFormat.dash_style#   s     XX:r   c                    Uc1  U R                   nUc  g UR                  5         UR                  5         g U R                  5       nXl        g r   )r    _remove_prstDash_remove_custDash_get_or_add_lnr!   )r   r$   r#   s      r   r$   r%   2   sG    Bz!!  "$r   c                N    U R                  5       n[        R                  " U5      $ )zd
|FillFormat| instance for this line, providing access to fill
properties such as foreground color.
)r)   r   from_fill_parentr"   s     r   r   LineFormat.fill>   s#       "**2..r   c                N    U R                   nUc  [        S5      $ UR                  $ )z
The width of the line expressed as an integer number of :ref:`English
Metric Units <EMU>`. The returned value is an instance of |Length|,
a value class having properties such as `.inches`, `.cm`, and `.pt`
for converting the value into convenient units.
r   )r    r   wr"   s     r   widthLineFormat.widthG   s$     XX:q6Mttr   c                :    Uc  SnU R                  5       nXl        g )Nr   )r)   r.   )r   emur#   s      r   r/   r0   T   s    ;C  "r   c                6    U R                   R                  5       $ )zQ
Return the ``<a:ln>`` element containing the line format properties
in the XML.
)r   get_or_add_lnr   s    r   r)   LineFormat._get_or_add_ln[   s    
 ||))++r   c                .    U R                   R                  $ r   )r   r#   r   s    r   r    LineFormat._lnb   s    ||r   )r   )__name__
__module____qualname____firstlineno____doc__r   r   r   propertyr$   setterr   r/   r)   r    __static_attributes____classcell__)r   s   @r   r	   r	   
   s     $ $   	% 	% / / 
 
 \\ ,  r   r	   N)r<   
__future__r   pptx.dml.fillr   pptx.enum.dmlr   	pptx.utilr   r   objectr	    r   r   <module>rG      s"    3 " $ " 'Z Zr   