MCPcopy Create free account
hub / github.com/scanny/python-pptx / table

Method table

src/pptx/shapes/graphfrm.py:122–130  ·  view source on GitHub ↗

The |Table| object contained in this graphic frame. Raises |ValueError| if this graphic frame does not contain a table.

(self)

Source from the content-addressed store, hash-verified

120
121 @property
122 def table(self) -> Table:
123 """The |Table| object contained in this graphic frame.
124
125 Raises |ValueError| if this graphic frame does not contain a table.
126 """
127 if not self.has_table:
128 raise ValueError("shape does not contain a table")
129 tbl = self._graphicFrame.graphic.graphicData.tbl
130 return Table(tbl, self)
131
132
133class _OleFormat(ParentedElementProxy):

Callers

nothing calls this directly

Calls 1

TableClass · 0.90

Tested by

no test coverage detected