Font - Underline

Text in PowerPoint shapes can be formatted with a rich choice of underlining styles. Two choices control the underline appearance of a font: the underline style and the underline color. There are 18 available underline styles, including such choices as single line, wavy, and dot-dash.

Candidate Protocol

>>> font.underline
False
>>> font.underline = True
>>> font.underline
SINGLE_LINE (2)
>>> font.underline = MSO_UNDERLINE.WAVY_DOUBLE_LINE
>>> font.underline
WAVY_DOUBLE_LINE (17)
>>> font.underline = False
>>> font.underline
False

XML specimens

Run with MSO_UNDERLINE.DOTTED_HEAVY_LINE:

<a:p>
  <a:r>
    <a:rPr lang="en-US" u="dottedHeavy" dirty="0" smtClean="0"/>
    <a:t>foobar</a:t>
  </a:r>
  <a:endParaRPr lang="en-US" dirty="0"/>
</a:p>