Used for `` ``, `` ``, `` `` and several others, containing a text representation of a decimal number (e.g. 42) in its ``val`` attribute.
| 11 | |
| 12 | |
| 13 | class CT_DecimalNumber(BaseOxmlElement): |
| 14 | """Used for ``<w:numId>``, ``<w:ilvl>``, ``<w:abstractNumId>`` and several others, |
| 15 | containing a text representation of a decimal number (e.g. 42) in its ``val`` |
| 16 | attribute.""" |
| 17 | |
| 18 | val: int = RequiredAttribute("w:val", ST_DecimalNumber) # pyright: ignore[reportAssignmentType] |
| 19 | |
| 20 | @classmethod |
| 21 | def new(cls, nsptagname: str, val: int): |
| 22 | """Return a new ``CT_DecimalNumber`` element having tagname `nsptagname` and |
| 23 | ``val`` attribute set to `val`.""" |
| 24 | return OxmlElement(nsptagname, attrs={qn("w:val"): str(val)}) |
| 25 | |
| 26 | |
| 27 | class CT_OnOff(BaseOxmlElement): |
nothing calls this directly
no test coverage detected
searching dependent graphs…