paper-docxAPI referenceenum.text
WD_COLOR_INDEX
paper-docx 0.2.0 API reference
Specifies a standard preset color to apply.
Used for font highlighting and perhaps other applications.
- MS API name:
WdColorIndex - URL: https://msdn.microsoft.com/EN-US/library/office/ff195343.aspx
Attributes
AUTO
attributeAUTO= (0, 'default', 'Automatic color. Default; usually black.')Automatic color. Default; usually black.
BLACK
attributeBLACK= (1, 'black', 'Black color.')Black color.
BLUE
attributeBLUE= (2, 'blue', 'Blue color')Blue color
BRIGHT_GREEN
attributeBRIGHT_GREEN= (4, 'green', 'Bright green color.')Bright green color.
DARK_BLUE
attributeDARK_BLUE= (9, 'darkBlue', 'Dark blue color.')Dark blue color.
DARK_RED
attributeDARK_RED= (13, 'darkRed', 'Dark red color.')Dark red color.
DARK_YELLOW
attributeDARK_YELLOW= (14, 'darkYellow', 'Dark yellow color.')Dark yellow color.
GRAY_25
attributeGRAY_25= (16, 'lightGray', '25% shade of gray color.')25% shade of gray color.
GRAY_50
attributeGRAY_50= (15, 'darkGray', '50% shade of gray color.')50% shade of gray color.
GREEN
attributeGREEN= (11, 'darkGreen', 'Green color.')Green color.
INHERITED
attributeINHERITED= (-1, None, 'Color is inherited from the style hierarchy.')Color is inherited from the style hierarchy.
PINK
attributePINK= (5, 'magenta', 'Pink color.')Pink color.
RED
attributeRED= (6, 'red', 'Red color.')Red color.
TEAL
attributeTEAL= (10, 'darkCyan', 'Teal color.')Teal color.
TURQUOISE
attributeTURQUOISE= (3, 'cyan', 'Turquoise color.')Turquoise color.
VIOLET
attributeVIOLET= (12, 'darkMagenta', 'Violet color.')Violet color.
WHITE
attributeWHITE= (8, 'white', 'White color.')White color.
YELLOW
attributeYELLOW= (7, 'yellow', 'Yellow color.')Yellow color.
xml_value
attributexml_valuestr | NoneFunctions
from_xml
funcfrom_xml(xml_value: str | None) -> SelfEnumeration member corresponding to XML attribute value xml_value.
Example::
WD_PARAGRAPH_ALIGNMENT.from_xml("center") WD_PARAGRAPH_ALIGNMENT.CENTER
paramxml_valuestr | NoneReturns
typing_extensions.Selfto_xml
functo_xml(value: int | _T | None) -> str | NoneXML value of this enum member, generally an XML attribute value.
paramvalueint | _T | NoneReturns
str | None