<u>
(Underline)
This element specifies that the contents of this run should be displayed along with an underline appearing directly below the character height (less all spacing above and below the characters on the line).
If this element is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then an underline shall not be applied to the contents of this run.
<w:rPr> <w:u w:val="double"/> </w:rPr>
This run explicitly declares an underline using the <u>
property. The @val
of that underline is double
, so the style of the underline on this run shall be a double line. ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies the color for the underlining on this run. This color may either be presented as a hex value (in RRGGBB format), or If the underline specifies the use of a theme color via the <w:rPr> <w:un … w:color="auto" /> </w:rPr> This color therefore may be automatically be modified by a consumer as appropriate, for example, in order to ensure that the underline can be distinguished against the page's background color. ] The possible values for this attribute are defined by the ST_HexColor simple type (§2.18.43). |
|
Specifies a theme color which should be applied to the current underline. The specified theme color is a reference to one of the predefined theme colors, located in the document's Theme part,which allows for color information to be set centrally in the document. If the <w:rPr> <w:u … w:themeColor=”accent3” /> </w:rPr> The The possible values for this attribute are defined by the ST_ThemeColor simple type (§2.18.104). |
|
Specifies the shade value applied to the supplied theme color (if any) for this underline. If the The The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
The equivalent HSL color value would be. Applying the shade formula with a shade percentage of 75% to the luminance, we get: Taking the resulting HSL color value of and converting back to RGB, we get This transformed value can be seen in the resulting underline's <w:u w:color="943634" w:themeColor="accent2" w:themeShade="BF" /> The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
Specifies the tint value applied to the supplied theme color (if any) for this underline's contents. If the The The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
The equivalent HSL color value would be. Applying the tint formula with a tint percentage of 60% to the luminance, we get: Taking the resulting HSL color value of and converting back to RGB, we get This transformed value can be seen in the resulting underline formatting's WordprocessingML <w:u … w:color="95B3D7" w:themeColor="accent2" w:themeTint="99" /> The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
Specifies the pattern which shall be used to create the underline applied beneath the text in this run. Each of these possible patterns are shown in the simple type referenced below. <w:rPr> <w:u w:val="double"/> </w:rPr> The The possible values for this attribute are defined by the ST_Underline simple type (§2.18.107). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Underline">
<attribute name="val" type="ST_Underline" use="optional"/>
<attribute name="color" type="ST_HexColor" use="optional"/>
<attribute name="themeColor" type="ST_ThemeColor" use="optional"/>
<attribute name="themeTint" type="ST_UcharHexNumber" use="optional"/>
<attribute name="themeShade" type="ST_UcharHexNumber" use="optional"/>
</complexType>