OOXML Shading¶
Table/Cell shading and Table Shading Exception
-
class
benker.parsers.ooxml.w_shd.Shd(w_shd)¶ Bases:
objectTable/Cell shading and Table Shading Exception
Example:
<w:shd w:val="clear" w:color="auto" w:fill="E6E6E6"/>See: http://www.datypic.com/sc/ooxml/e-w_shd-3.html See: http://www.datypic.com/sc/ooxml/e-w_shd-4.html See: http://www.datypic.com/sc/ooxml/e-w_shd-5.html
-
styles¶
-
w_color= None¶ Shading Pattern Color
-
w_fill= None¶ Shading Background Color
-
w_themeColor= None¶ Shading Pattern Theme Color
-
w_themeFill= None¶ Shading Background Theme Color
-
w_themeFillShade= None¶ Shading Background Theme Color Shade
-
w_themeFillTint= None¶ Shading Background Theme Color Tint
-
w_themeShade= None¶ Shading Pattern Theme Color Shade
-
w_themeTint= None¶ Shading Pattern Theme Color Tint
-
w_val= None¶ Shading Pattern
-
-
benker.parsers.ooxml.w_shd.value_of(element, xpath, *, namespaces={'w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'}, default=None)¶ Take the first value of a xpath evaluation.
Parameters: - element (etree._Element) – Root element used to evaluate the xpath expression.
- xpath (str) – xpath expression. This expression will be evaluated using the namespaces namespaces.
- namespaces (dict[str, str]) – Namespace map to use for the xpath evaluation.
- default – default value used if the xpath evaluation returns no result.
Returns: the first result or the default value.