Used for `w:b`, `w:i` elements and others. Contains a bool-ish string in its `val` attribute, xsd:boolean plus "on" and "off". Defaults to `True`, so ` ` for example means "bold is turned on".
| 25 | |
| 26 | |
| 27 | class CT_OnOff(BaseOxmlElement): |
| 28 | """Used for `w:b`, `w:i` elements and others. |
| 29 | |
| 30 | Contains a bool-ish string in its `val` attribute, xsd:boolean plus "on" and |
| 31 | "off". Defaults to `True`, so `<w:b>` for example means "bold is turned on". |
| 32 | """ |
| 33 | |
| 34 | val: bool = OptionalAttribute( # pyright: ignore[reportAssignmentType] |
| 35 | "w:val", ST_OnOff, default=True |
| 36 | ) |
| 37 | |
| 38 | |
| 39 | class CT_String(BaseOxmlElement): |
nothing calls this directly
no test coverage detected
searching dependent graphs…