Compartir a través de


DoNotDisplayPageBoundaries Class

Do Not Display Visual Boundary For Header/Footer or Between Pages.When the object is serialized out as xml, its qualified name is w:doNotDisplayPageBoundaries.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.DoNotDisplayPageBoundaries

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

Syntax

'Declaración
Public Class DoNotDisplayPageBoundaries _
    Inherits OnOffType
'Uso
Dim instance As DoNotDisplayPageBoundaries
public class DoNotDisplayPageBoundaries : OnOffType

Remarks

[ISO/IEC 29500-1 1ª edición]

17.15.1.35 doNotDisplayPageBoundaries (Do Not Display Visual Boundary For Header/Footer or Between Pages)

This element specifies whether applications displaying this document should display the contents of the header and footer when displaying the document in print layout view (§17.15.1.92) or should collapse those areas as well as the whitespace on all displayed pages so that the text extents are directly following one another. [Rationale: Collapsing the ends of pages makes it easier to read the contents of the document, since the text flows between pages without whitespace, while maintaining the WYSIWYG functionality of print layout view for the document's main content. end rationale]

If this element is omitted, then all pages should be shown at their full size (including whitespace and headers/footers) when they are displayed in print layout view.

[Example: Consider the images below illustrating two pages in a WordprocessingML document:

DocumentFormat.OpenXml.Wordprocessing.DoNotDisplay

If document must automatically have whitespace between pages removed when it is displayed, that requirement would be specified using the following WordprocessingML in the document settings:

<w:doNotDisplayPageBoundaries w:val="true" />

The resulting output might look like the following:

DocumentFormat.OpenXml.Wordprocessing.DoNotDisplay

The doNotDisplayPageBoundaries element has its val attribute equal to true, therefore the document is automatically displayed with whitespace between text extents on following pages compressed, allowing the pages to be viewed more easily. end example]

Parent Elements

settings (§17.15.1.78)

This element's content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.

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

DoNotDisplayPageBoundaries Members

DocumentFormat.OpenXml.Wordprocessing Namespace