MCPcopy Index your code
hub / github.com/python-openxml/python-docx / CT_TblGridCol

Class CT_TblGridCol

src/docx/oxml/table.py:271–282  ·  view source on GitHub ↗

`w:gridCol` element, child of `w:tblGrid`, defines a table column.

Source from the content-addressed store, hash-verified

269
270
271class CT_TblGridCol(BaseOxmlElement):
272 """`w:gridCol` element, child of `w:tblGrid`, defines a table column."""
273
274 w: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
275 "w:w", ST_TwipsMeasure
276 )
277
278 @property
279 def gridCol_idx(self) -> int:
280 """Index of this `w:gridCol` element within its parent `w:tblGrid` element."""
281 tblGrid = cast(CT_TblGrid, self.getparent())
282 return tblGrid.gridCol_lst.index(self)
283
284
285class CT_TblLayoutType(BaseOxmlElement):

Callers

nothing calls this directly

Calls 1

OptionalAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…