docx.enum package

Submodules

docx.enum.ListStyle module

class docx.enum.ListStyle.ListStyle[source]

Bases: object

Enum class with styles for lists

bullet = False
decimal = True

docx.enum.color module

docx.enum.font_style module

class docx.enum.font_style.FontStyle[source]

Bases: object

Class with font enum

ARIAL = 'Arial'
CALIBRI = 'Calibri'
COMIC_SANS_MS = 'Comic Sans MS'
COURIER_NEW = 'Courier New'
GEORGIA = 'Georgia'
HELVETICA = 'Helvetica'
IMPACT = 'Impact'
SYMBOL = 'Symbol'
TAHOMA = 'Tahoma'
TIMES_NEW_ROMAN = 'Times New Roman'
TREBUCHET_MS = 'Trebuchet MS'
VERDANA = 'Verdana'
WINGDINGS = 'Wingdings'

docx.enum.schemas module

docx.enum.underline_style module

class docx.enum.underline_style.UnderlineStyle[source]

Bases: object

Class with enum for underline

DASH = 7

Dashed underline.

DASH_HEAVY = 23

Heavy dashes underline.

DASH_LONG = 39

Long dashes underline.

DASH_LONG_HEAVY = 55

Long heavy dashes underline.

DOTTED = 4

Dotted underline.

DOTTED_HEAVY = 20

Heavy dots underline.

DOT_DASH = 9

Alternating dots and dashes underline.

DOT_DASH_HEAVY = 25

Alternating heavy dots and heavy dashes underline.

DOT_DOT_DASH = 10

An alternating dot-dot-dash pattern underline.

DOT_DOT_DASH_HEAVY = 26

An alternating heavy dot-dot-dash pattern underline.

DOUBLE = 3

A double line underline.

NONE = 0

None underline.

SINGLE = 1

A single line underline.

THICK = 6

A thick line underline.

WAVY = 11

Wavy underline.

WAVY_DOUBLE = 43

Double wavy underline.

WAVY_HEAVY = 27

Heavy wavy underline.

WORDS = 2

Underline individual words only.

Module contents