Compartir a través de


SectionType Class

Section Type.When the object is serialized out as xml, its qualified name is w:type.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

[ISO/IEC 29500-1 1st Edition]

17.6.22 type (Section Type)

This element specifies the section type of the current section. The section type specifies how the contents of the current section shall be placed relative to the previous section.

WordprocessingML supports five distinct types of section breaks:

  • Next page section breaks (the default if type is not specified), which begin the new section on the following page.

  • Odd page section breaks, which begin the new section on the next odd-numbered page.

  • Even page section breaks, which begin the new section on the next even-numbered page.

  • Continuous section breaks, which begin the new section on the following paragraph. This means that continuous section breaks might not specify certain page-level section properties, since they shall be inherited from the following section. These breaks, however, can specify other section properties, such as line numbering and footnote/endnote settings.

  • Column section breaks, which begin the new section on the next column on the page.

Parent Elements

sectPr (§17.6.17); sectPr (§17.6.18); sectPr (§17.6.19)

Attributes

Description

val (Section Type Setting)

Specifies the section type of the current section.

[Example: Consider a section that must start on the next page in the document. The WordprocessingML specifying this would look like:

<w:sectPr>
…
<w:type w:val="nextPage"/>
</w:sectPr>

The nextPage value specifies that this section starts on the next page. end example]

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

[Note: The W3C XML Schema definition of this element’s content model (CT_SectType) 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

SectionType Members

DocumentFormat.OpenXml.Wordprocessing Namespace