Поделиться через


Emphasis Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.Emphasis

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

Syntax

'Декларация
Public Class Emphasis _
    Inherits OpenXmlLeafElement
'Применение
Dim instance As Emphasis
public class Emphasis : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 редакция 1]

17.3.2.12 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. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

Thread Safety

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

See Also

Reference

Emphasis Members

DocumentFormat.OpenXml.Wordprocessing Namespace