Source code for ooodev.adapter.text.text_portion_type_kind

from enum import Enum

[docs]class TextPortionTypeKind(Enum): """The type of a text portion.""" # TEXT = "Text" """string content""" TEXT_FIELD = "TextField" """a text field""" TEXT_CONTENT = "TextContent" """Text content - supplied via the interface""" CONTROL_CHARACTER = "ControlCharacter" """A control character""" FOOTNOTE = "Footnote" """A footnote or an endnote""" REFERENCE_MARK = "ReferenceMark" """a reference mark""" DOCUMENT_INDEX_MARK = "DocumentIndexMark" """A document index mark""" BOOKMARK = "Bookmark" """A bookmark""" REDLINE = "Redline" """A redline portion which is a result of the change tracking feature""" RUBY = "Ruby" """A ruby attribute which is used in Asian text""" FRAME = "Frame" """A frame""" SOFT_PAGE_BREAK = "SoftPageBreak" """A soft page break""" IN_CONTENT_METADATA = "InContentMetadata" """A text range with attached metadata""" UNKNOWN = "unknown" def __str__(self) -> str: return self.value