MSO_PATTERN_TYPE
paper-pptx 0.2.0 API reference
Specifies the fill pattern used in a shape.
Alias: MSO_PATTERN
Example::
from pptx.enum.dml import MSO_PATTERN
fill = shape.fill fill.patterned() fill.pattern = MSO_PATTERN.WAVE
MS API Name: MsoPatternType
https://learn.microsoft.com/en-us/office/vba/api/Office.MsoPatternType
Attributes
CROSS
attributeCROSS= (51, 'cross', 'Cross')Cross
DARK_DOWNWARD_DIAGONAL
attributeDARK_DOWNWARD_DIAGONAL= (15, 'dkDnDiag', 'Dark Downward Diagonal')Dark Downward Diagonal
DARK_HORIZONTAL
attributeDARK_HORIZONTAL= (13, 'dkHorz', 'Dark Horizontal')Dark Horizontal
DARK_UPWARD_DIAGONAL
attributeDARK_UPWARD_DIAGONAL= (16, 'dkUpDiag', 'Dark Upward Diagonal')Dark Upward Diagonal
DARK_VERTICAL
attributeDARK_VERTICAL= (14, 'dkVert', 'Dark Vertical')Dark Vertical
DASHED_DOWNWARD_DIAGONAL
attributeDASHED_DOWNWARD_DIAGONAL= (28, 'dashDnDiag', 'Dashed Downward Diagonal')Dashed Downward Diagonal
DASHED_HORIZONTAL
attributeDASHED_HORIZONTAL= (32, 'dashHorz', 'Dashed Horizontal')Dashed Horizontal
DASHED_UPWARD_DIAGONAL
attributeDASHED_UPWARD_DIAGONAL= (27, 'dashUpDiag', 'Dashed Upward Diagonal')Dashed Upward Diagonal
DASHED_VERTICAL
attributeDASHED_VERTICAL= (31, 'dashVert', 'Dashed Vertical')Dashed Vertical
DIAGONAL_BRICK
attributeDIAGONAL_BRICK= (40, 'diagBrick', 'Diagonal Brick')Diagonal Brick
DIAGONAL_CROSS
attributeDIAGONAL_CROSS= (54, 'diagCross', 'Diagonal Cross')Diagonal Cross
DIVOT
attributeDIVOT= (46, 'divot', 'Pattern Divot')Pattern Divot
DOTTED_DIAMOND
attributeDOTTED_DIAMOND= (24, 'dotDmnd', 'Dotted Diamond')Dotted Diamond
DOTTED_GRID
attributeDOTTED_GRID= (45, 'dotGrid', 'Dotted Grid')Dotted Grid
DOWNWARD_DIAGONAL
attributeDOWNWARD_DIAGONAL= (52, 'dnDiag', 'Downward Diagonal')Downward Diagonal
ERCENT_40
attributeERCENT_40= (6, 'pct40', '40% of the foreground color.')40% of the foreground color.
HORIZONTAL
attributeHORIZONTAL= (49, 'horz', 'Horizontal')Horizontal
HORIZONTAL_BRICK
attributeHORIZONTAL_BRICK= (35, 'horzBrick', 'Horizontal Brick')Horizontal Brick
LARGE_CHECKER_BOARD
attributeLARGE_CHECKER_BOARD= (36, 'lgCheck', 'Large Checker Board')Large Checker Board
LARGE_CONFETTI
attributeLARGE_CONFETTI= (33, 'lgConfetti', 'Large Confetti')Large Confetti
LARGE_GRID
attributeLARGE_GRID= (34, 'lgGrid', 'Large Grid')Large Grid
LIGHT_DOWNWARD_DIAGONAL
attributeLIGHT_DOWNWARD_DIAGONAL= (21, 'ltDnDiag', 'Light Downward Diagonal')Light Downward Diagonal
LIGHT_HORIZONTAL
attributeLIGHT_HORIZONTAL= (19, 'ltHorz', 'Light Horizontal')Light Horizontal
LIGHT_UPWARD_DIAGONAL
attributeLIGHT_UPWARD_DIAGONAL= (22, 'ltUpDiag', 'Light Upward Diagonal')Light Upward Diagonal
LIGHT_VERTICAL
attributeLIGHT_VERTICAL= (20, 'ltVert', 'Light Vertical')Light Vertical
MIXED
attributeMIXED= (-2, '', 'Mixed pattern (read-only).')Mixed pattern (read-only).
NARROW_HORIZONTAL
attributeNARROW_HORIZONTAL= (30, 'narHorz', 'Narrow Horizontal')Narrow Horizontal
NARROW_VERTICAL
attributeNARROW_VERTICAL= (29, 'narVert', 'Narrow Vertical')Narrow Vertical
OUTLINED_DIAMOND
attributeOUTLINED_DIAMOND= (41, 'openDmnd', 'Outlined Diamond')Outlined Diamond
PERCENT_10
attributePERCENT_10= (2, 'pct10', '10% of the foreground color.')10% of the foreground color.
PERCENT_20
attributePERCENT_20= (3, 'pct20', '20% of the foreground color.')20% of the foreground color.
PERCENT_25
attributePERCENT_25= (4, 'pct25', '25% of the foreground color.')25% of the foreground color.
PERCENT_30
attributePERCENT_30= (5, 'pct30', '30% of the foreground color.')30% of the foreground color.
PERCENT_5
attributePERCENT_5= (1, 'pct5', '5% of the foreground color.')5% of the foreground color.
PERCENT_50
attributePERCENT_50= (7, 'pct50', '50% of the foreground color.')50% of the foreground color.
PERCENT_60
attributePERCENT_60= (8, 'pct60', '60% of the foreground color.')60% of the foreground color.
PERCENT_70
attributePERCENT_70= (9, 'pct70', '70% of the foreground color.')70% of the foreground color.
PERCENT_75
attributePERCENT_75= (10, 'pct75', '75% of the foreground color.')75% of the foreground color.
PERCENT_80
attributePERCENT_80= (11, 'pct80', '80% of the foreground color.')80% of the foreground color.
PERCENT_90
attributePERCENT_90= (12, 'pct90', '90% of the foreground color.')90% of the foreground color.
PLAID
attributePLAID= (42, 'plaid', 'Plaid')Plaid
SHINGLE
attributeSHINGLE= (47, 'shingle', 'Shingle')Shingle
SMALL_CHECKER_BOARD
attributeSMALL_CHECKER_BOARD= (17, 'smCheck', 'Small Checker Board')Small Checker Board
SMALL_CONFETTI
attributeSMALL_CONFETTI= (37, 'smConfetti', 'Small Confetti')Small Confetti
SMALL_GRID
attributeSMALL_GRID= (23, 'smGrid', 'Small Grid')Small Grid
SOLID_DIAMOND
attributeSOLID_DIAMOND= (39, 'solidDmnd', 'Solid Diamond')Solid Diamond
SPHERE
attributeSPHERE= (43, 'sphere', 'Sphere')Sphere
TRELLIS
attributeTRELLIS= (18, 'trellis', 'Trellis')Trellis
UPWARD_DIAGONAL
attributeUPWARD_DIAGONAL= (53, 'upDiag', 'Upward Diagonal')Upward Diagonal
VERTICAL
attributeVERTICAL= (50, 'vert', 'Vertical')Vertical
WAVE
attributeWAVE= (48, 'wave', 'Wave')Wave
WEAVE
attributeWEAVE= (44, 'weave', 'Weave')Weave
WIDE_DOWNWARD_DIAGONAL
attributeWIDE_DOWNWARD_DIAGONAL= (25, 'wdDnDiag', 'Wide Downward Diagonal')Wide Downward Diagonal
WIDE_UPWARD_DIAGONAL
attributeWIDE_UPWARD_DIAGONAL= (26, 'wdUpDiag', 'Wide Upward Diagonal')Wide Upward Diagonal
ZIG_ZAG
attributeZIG_ZAG= (38, 'zigZag', 'Zig Zag')Zig Zag
xml_value
attributexml_valuestr | NoneFunctions
from_xml
funcfrom_xml(xml_value: str) -> SelfEnumeration 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_valuestrReturns
typing_extensions.Selfto_xml
functo_xml(value: int | _T) -> strXML value of this enum member, generally an XML attribute value.
paramvalueint | _TReturns
strvalidate
funcvalidate(value: _T)Raise ValueError if value is not an assignable value.
paramvalue_T