Compartir a través de


WebPublishObject Class

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

Inheritance Hierarchy

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

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

Syntax

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

Remarks

[ISO/IEC 29500-1 1st Edition]

18.2.25 webPublishObject (Web Publishing Object)

This element defines a single Web publishing object for the workbook. This element tracks basic information about an object in the workbook, such as a named range, that is published to the Web.

Parent Elements

webPublishObjects (§18.2.26)

Attributes

Description

autoRepublish (Auto Republish)

Specifies a boolean value that indicates whether the object specified in sourceObject is automatically published every time the workbook is saved.

A value of 1 or true indicates the application will publish the sourceObject when the workbook is saved.

A value of 0 or false indicates the application will not publish the sourceObject when the workbook is saved.

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

destinationFile (Destination File)

Specifies the destination file name to which the sourceObject is published.

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

divId (Div Id)

Specifies the destination bookmark (div id) for the published object.

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

id (Id)

Specifies the number, in "nnnnn" format, used in generated div id, in style id's, token filenames, and other variables.

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

sourceObject (Source Object)

Specifies the named range to be published. If omitted, the entire workbook is published.

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

title (Title)

Specifies the title of the published item.

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_WebPublishObject) is located in §A.2. 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

WebPublishObject Members

DocumentFormat.OpenXml.Spreadsheet Namespace