次の方法で共有


HeaderFooter Class

Header and Footer.When the object is serialized out as xml, its qualified name is c:headerFooter.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Charts.HeaderFooter

Namespace: DocumentFormat.OpenXml.Drawing.Charts
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'宣言
<ChildElementInfoAttribute(GetType(FirstFooter))> _
<ChildElementInfoAttribute(GetType(OddFooter))> _
<ChildElementInfoAttribute(GetType(EvenHeader))> _
<ChildElementInfoAttribute(GetType(EvenFooter))> _
<ChildElementInfoAttribute(GetType(FirstHeader))> _
<ChildElementInfoAttribute(GetType(OddHeader))> _
Public Class HeaderFooter _
    Inherits OpenXmlCompositeElement
'使用
Dim instance As HeaderFooter
[ChildElementInfoAttribute(typeof(FirstFooter))]
[ChildElementInfoAttribute(typeof(OddFooter))]
[ChildElementInfoAttribute(typeof(EvenHeader))]
[ChildElementInfoAttribute(typeof(EvenFooter))]
[ChildElementInfoAttribute(typeof(FirstHeader))]
[ChildElementInfoAttribute(typeof(OddHeader))]
public class HeaderFooter : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • OddHeader <c:oddHeader>

  • OddFooter <c:oddFooter>

  • EvenHeader <c:evenHeader>

  • EvenFooter <c:evenFooter>

  • FirstHeader <c:firstHeader>

  • FirstFooter <c:firstFooter>

[ISO/IEC 29500-1 初版]

21.2.2.79 headerFooter (Header and Footer)

This element specifies the headers and footers that shall be used when the chart is printed.

Parent Elements

printSettings (§21.2.2.148)

Child Elements

Subclause

evenFooter (Even Footer)

§21.2.2.59

evenHeader (Even Header)

§21.2.2.60

firstFooter (First Footer)

§21.2.2.66

firstHeader (First Header)

§21.2.2.67

oddFooter (Odd Footer)

§21.2.2.124

oddHeader (Odd Header)

§21.2.2.125

Attributes

Description

alignWithMargins (Align With Margins)

Specifies the header and footer should align with the left and right margins of the chart.

A value of 1 or true specifies that the property is applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of 0 or false specifies that the property is not applied.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

differentFirst (Different First)

Specifies the header and footer are different for the first page.

A value of 1 or true specifies that the property is applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of 0 or false specifies that the property is not applied.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

differentOddEven (Different Odd Even)

Specifies the header and footer are different on odd-numbered pages and even-numbered pages.

A value of 1 or true specifies that the property is applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of 0 or false specifies that the property is not applied.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

[Note: The W3C XML Schema definition of this element's content model (CT_HeaderFooter) is located in §A.5.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

HeaderFooter Members

DocumentFormat.OpenXml.Drawing.Charts Namespace