API reference / Common / Engine types / TextUnderline
Interface: TextUnderline
An underline (u / a:uLn / a:uFill / w:u) — its style pattern plus the DrawingML-split stroke and fill.
docx spells the whole thing as one w:u element (a style plus a color); DrawingML splits it into the @u style attribute, an a:uLn stroke, and an a:uFill fill, each of which can instead follow the span's text (a:uLnTx / a:uFillTx) — modeled here as None on line / fill, the default. docx's underline color lands on fill as a solid fill.
Properties
| Property | Description |
|---|---|
styleTextUnderlineStyle | @u / w:u@val — the underline pattern. |
line?PaintLine | a:uLn — the underline's own stroke. None follows the span's text (a:uLnTx), the default. |
fill?PaintFill | a:uFill / w:u@color — the underline's own fill. None follows the span's text (a:uFillTx), the default. |