Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Emphasis class

Defines the Emphasis Class. When the object is serialized out as xml, its qualified name is w:em.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Emphasis : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

em (Emphasis Mark)

This element specifies the emphasis mark which shall be displayed for each non-space character in this run. An emphasis mark is an additional character that is rendered above or below the main character glyph as specified by the contents of the val attribute.

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 no emphasis mark shall be added to each character in the contents of this run.

[Example: Consider a run of text which must have a dot underneath each character as an emphasis mark. This constraint is specified using the following WordprocessingML:

<w:rPr>
  <w:em w:val="dot"/>
</w:rPr>

This run explicitly declares that the emphasis mark type is dot, so the contents of this run has a dot emphasis mark above each character. end example]

Parent Elements

rPr (§17.3.1.29); rPr (§17.3.1.30); rPr (§17.5.2.28); rPr (§17.9.25); rPr (§17.7.9.1); rPr (§17.7.5.4); rPr (§17.3.2.28); rPr (§17.5.2.27); rPr (§17.7.6.2); rPr (§17.3.2.27)

Attributes

Description

val (Emphasis Mark Type)

Specifies the emphasis mark type used for each character in this run.

[Example: Consider a run of text which must have a dot underneath each character as an emphasis mark. This constraint is specified using the following WordprocessingML:

<w:rPr>
  <w:em w:val="dot"/>
</w:rPr>

This run explicitly declares that the em type is dot, so the contents of this run have a dot emphasis mark beneath each character. end example]

The possible values for this attribute are defined by the ST_Em simple type (§17.18.24).

[Note: The W3C XML Schema definition of this element’s content model (CT_Em) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft