共用方式為


HtmlPublishProperties Class

HTML Publishing Properties.This class is only available in Office2007.When the object is serialized out as xml, its qualified name is p:htmlPubPr.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.HtmlPublishProperties

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(SlideAll))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(CustomShowReference))> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2007)> _
<ChildElementInfoAttribute(GetType(SlideRange))> _
Public Class HtmlPublishProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As HtmlPublishProperties
[ChildElementInfoAttribute(typeof(SlideAll))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(CustomShowReference))]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2007)]
[ChildElementInfoAttribute(typeof(SlideRange))]
public class HtmlPublishProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • SlideAll <p:sldAll>

  • SlideRange <p:sldRg>

  • CustomShowReference <p:custShow>

  • ExtensionList <p:extLst>

[ISO/IEC 29500-1 1st Edition]

11.2.1.1 htmlPubPr (HTML Publishing Properties)

This element specifies the publishing properties to be used when publishing this presentation document to the HTML file format. The target output profile is identified by the contents of the target attribute.

Parent Elements

presentationPr (Part 1, §19.2.1.27)

Child Elements

Subclause

custShow (Custom Show)

Part 1, §19.2.1.5

extLst (Extension List)

Part 1, §19.2.1.12

sldAll (All Slides)

Part 1, §19.2.1.32

sldRg (Slide Range)

Part 1, §19.2.1.38

Attributes

Description

id (Publish Path)

Namespace: .../officeDocument/2006/relationships

Specifies the path that should be used when publishing.

The possible values for this attribute are defined by the ST_RelationshipId simple type (Part 1, §22.8.2.1).

showSpeakerNotes (Show Speaker Notes)

Specifies whether to show speaker notes when publishing.

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

target (Target Output Profile)

Specifies the version of HTML output targeted by the output of any web page produced by this document. This attribute shall only contain a string that represents an output profile defined by published standards and W3C recommendations. Product names shall not be used to define a profile.

The following reserved values and their targets are listed below:

Value

Target

W3C XHTML+CSS1

W3C XHTML 1.0 + CSS 1

W3C HTML4+CSS1

W3C HTML 4.01 + CSS 1

W3C XHTML+CSS2

W3C XHTML 1.0 + CSS 2

W3C HTML4+CSS2

W3C HTML 4.01 + CSS 2

[Example: For example, consider the following set of HTML publishing settings:

<p:htmlPubPr …  target="W3C HTML4+CSS2">
…
</p:htmlPubPr>

The target attribute explicitly declares that any web page generated from this document should target the W3C HTML4+CSS2 profile. end example]

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

title (HTML Output Title)

Specifies a title for the HTML output file.

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

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

HtmlPublishProperties Members

DocumentFormat.OpenXml.Presentation Namespace