Поделиться через


WebPublishItem Class

Web Publishing Item.When the object is serialized out as xml, its qualified name is x:webPublishItem.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Spreadsheet.WebPublishItem

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

Syntax

'Декларация
Public Class WebPublishItem _
    Inherits OpenXmlLeafElement
'Применение
Dim instance As WebPublishItem
public class WebPublishItem : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 редакция 1]

18.3.1.97 webPublishItem (Web Publishing Item)

This element represents information for a single item or object which can be published to HTML.

Parent Elements

webPublishItems (§18.3.1.98)

Attributes

Description

autoRepublish (Automatically Publish)

Automatically publish this item every time the workbook is saved.

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

destinationFile (Destination File Name)

Destination file name. Indicates where to save the HTML publish file.

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

divId (Destination Bookmark)

Destination bookmark. Identifies a specific <div> section in the published HTML file when a subset of the workbook is published to HTML. Each item that has been published from a workbook is written to a unique <div>element in HTML. On re-publishing a particular item from the workbook, only that item's corresponding <div> content is updated. Therefore each publish item corresponds to a unique <div> element. It is possible to add new publish items to an existing published page, and it is possible to re-publish individual items without republishing the entire workbook.

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

id (Id)

This is a unique number "nnnnn" of the webPublishItem. This value is used to generate the divId and styleId values.

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

sourceObject (Source Object Name)

Source object name (required for sourceType = pivotTable, query, or label).

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

sourceRef (Source Id)

Source range (required for sourceType = 'range').

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

sourceType (Web Source Type)

Type of web source (or objects to publish).

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

title (Title)

HTML title of published item. [Example: This value can appear in the web browser window's title bar. end example]

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

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

WebPublishItem Members

DocumentFormat.OpenXml.Spreadsheet Namespace