EndnotePosition Class

Endnote Placement.When the object is serialized out as xml, its qualified name is w:pos.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class EndnotePosition _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As EndnotePosition
public class EndnotePosition : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

17.11.22 pos (Endnote Placement)

This element specifies where endnotes shall be placed on the page when they are referenced by text in the current document.

If this element is present at the section level, then it shall be ignored.

If this element is omitted at the document level, then endnotes shall be located at the end of the document.

[Example: Consider the following multi-page, multi-section document, where the endnote appears at the end of the section in which it is referenced:

DocumentFormat.OpenXml.Wordprocessing.EndnotePosit

The endnote setting is the same for all sections, and is represented by the following WordprocessingML at the document level:

<w:settings>
…
<w:endnotePr>
<w:pos w:val="sectEnd" />
…
</w:endnotePr>
…
</w:settings>

Within the properties of the document, the position of endnotes is specified to be at the end of each section. end example]

Parent Elements

endnotePr (§17.11.4); endnotePr (§17.11.5)

Attributes

Description

val (Endnote Position Type)

Specifies the position of endnotes on the parent section or the document.

[Example: Consider a document in which endnotes must be positioned at the end of the section. The section properties for this section must be declared as follows:

<w:settings>
  <w:endnotePr>
    <w:pos w:val="sectEnd" />
  </w:endnotePr>
  …
</w:settings>

The val attribute is endSect, therefore the position of endnotes is specified to be at the end of the section. end example]

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

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

© ISO/IEC29500: 2008.

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

EndnotePosition Members

DocumentFormat.OpenXml.Wordprocessing Namespace