`w:gridCol` element, child of `w:tblGrid`, defines a table column.
| 269 | |
| 270 | |
| 271 | class 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 | |
| 285 | class CT_TblLayoutType(BaseOxmlElement): |
nothing calls this directly
no test coverage detected
searching dependent graphs…