Partager via


WebPublishing Class

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

Inheritance Hierarchy

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

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

Syntax

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

Remarks

[ISO/IEC 29500-1 1st Edition]

18.2.24 webPublishing (Web Publishing Properties)

This element defines properties that relate to publishing this workbook to the Web.

Parent Elements

workbook (§18.2.27)

Attributes

Description

allowPng (Allow PNG)

Specifies a boolean value that indicates whether the application saves images in the PNG (Portable Network Graphics) graphic format.

A value of 1 or true indicates the application supports PNG .

A value of 0 or false indicates the application does not support PNG.

The default value for this attribute is false.

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

characterSet (Character Set)

Name of the character set the application uses when a Web page is saved. The values alllowed within this attribute are names and aliases listed in the IANA CHARACTER SETS listing found at http://www.iana.org/assignments/character-sets.

If this attribute is not present then the codePage attribute can be used.

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

css (Use CSS)

Specifies a boolean value that indicates whether the application uses Cascading Style Sheet (CSS) for font formatting on Web pages.

A value of 1 or true indicates the application uses CSS for font formats in Web pages.

A value of 0 or false indicates the application does not use CSS for font formats.

The default value for this attribute is true.

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

dpi (DPI)

Specifies the DPI (defined as the number of pixels per inch) that are used to display images in Web pages. The specified DPI affects the size of graphics relative to the size of text on the screen.

The default value for this attribute is 96.

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

longFileNames (Enable Long File Names)

Specifies a boolean value that indicates whether the application allows file names longer than 8 characters for Web pages.

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

targetScreenSize (Target Screen Size)

Specifies the screen size on which Web pages are displayed. The specified screen size might affect the size and layout of images on web pages.

The default value of this attribute is "800x600."

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

thicket (Thicket)

Specifies a boolean value that indicates that the application stores supporting files such as bullets, background textures, and graphics in a separate folder from the Web page

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

vml (VML in Browsers)

Specifies a boolean value that indicates whether the application uses VML (Vector Markup Language) to display graphics in Web browsers

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_WebPublishing) 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

WebPublishing Members

DocumentFormat.OpenXml.Spreadsheet Namespace