X Tutup
Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 421 Bytes

File metadata and controls

29 lines (19 loc) · 421 Bytes

WD_STYLE_TYPE

Specifies one of the four style types: paragraph, character, list, or table.

Example:

from docx import Document
from docx.enum.style import WD_STYLE_TYPE

styles = Document().styles
assert styles[0].type == WD_STYLE_TYPE.PARAGRAPH

CHARACTER
Character style.
LIST
List style.
PARAGRAPH
Paragraph style.
TABLE
Table style.
X Tutup