Paper Office
paper-pptxAPI referenceenum.dml

MSO_LINE_DASH_STYLE

paper-pptx 0.2.0 API reference

Specifies the dash style for a line.

Alias: MSO_LINE

Example::

from pptx.enum.dml import MSO_LINE

shape.line.dash_style = MSO_LINE.DASH_DOT_DOT

MS API name: MsoLineDashStyle

https://learn.microsoft.com/en-us/office/vba/api/Office.MsoLineDashStyle

Attributes

DASH

attributeDASH
= (4, 'dash', 'Line consists of dashes only.')

Line consists of dashes only.

DASH_DOT

attributeDASH_DOT
= (5, 'dashDot', 'Line is a dash-dot pattern.')

Line is a dash-dot pattern.

DASH_DOT_DOT

attributeDASH_DOT_DOT
= (6, 'lgDashDotDot', 'Line is a dash-dot-dot pattern.')

Line is a dash-dot-dot pattern.

DASH_STYLE_MIXED

attributeDASH_STYLE_MIXED
= (-2, '', 'Not supported.')

Return value only, indicating more than one dash style applies.

LONG_DASH

attributeLONG_DASH
= (7, 'lgDash', 'Line consists of long dashes.')

Line consists of long dashes.

LONG_DASH_DOT

attributeLONG_DASH_DOT
= (8, 'lgDashDot', 'Line is a long dash-dot pattern.')

Line is a long dash-dot pattern.

ROUND_DOT

attributeROUND_DOT
= (3, 'sysDot', 'Line is made up of round dots.')

Line is made up of round dots.

SOLID

attributeSOLID
= (1, 'solid', 'Line is solid.')

Line is solid.

SQUARE_DOT

attributeSQUARE_DOT
= (2, 'sysDash', 'Line is made up of square dots.')

Line is made up of square dots.

xml_value

attributexml_valuestr | None

Functions

from_xml

funcfrom_xml(xml_value: str) -> Self

Enumeration member corresponding to XML attribute value xml_value.

Raises ValueError if xml_value is the empty string ("") or is not an XML attribute value registered on the enumeration. Note that enum members that do not correspond to one of the defined values for an XML attribute have xml_value == "". These "return-value only" members cannot be automatically mapped from an XML attribute value and must be selected explicitly by code, based on the appropriate conditions.

Example::

WD_PARAGRAPH_ALIGNMENT.from_xml("center") WD_PARAGRAPH_ALIGNMENT.CENTER

paramxml_valuestr

Returns

typing_extensions.Self

to_xml

functo_xml(value: int | _T) -> str

XML value of this enum member, generally an XML attribute value.

paramvalueint | _T

Returns

str

validate

funcvalidate(value: _T)

Raise ValueError if value is not an assignable value.

paramvalue_T

On this page