WorkbookProperties class

Office 2013 and later

Defines the WorkbookProperties Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is x14:workbookPr.

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Excel.WorkbookProperties

Namespace:  DocumentFormat.OpenXml.Office2010.Excel
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

2.4.14 workbookPr

Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main

A workbookPr element is a CT_WorkbookPr element, as specified in section 2.6.10, that specifies additional properties for a workbook. See section 2.2.4.10 for how this element integrates with the Office Open XML file formats specified in [ISO/IEC-29500-1].

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="workbookPr" type="CT_WorkbookPr"/>

See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.6.10 CT_WorkbookPr

Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main

Referenced by: workbookPr

CT_WorkbookPr is a complex type that specifies additional properties for a workbook.

Attributes:

defaultImageDpi: An unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that specifies the resolution in which images in the workbook is saved, in DPI, when the autoCompressPictures attribute of the WorkbookPr ([ISO/IEC-29500-1] section 18.2.28) element is "true" and the CT_UseLocalDpi ([MS-ODRAWXML] section 2.3.2) element of the drawings part ([ISO/IEC-29500-1] section 12.3.8) corresponding to the image being saved is "false". MUST be equal to "96", "150", or "220".

discardImageEditData: A Boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether all CT_Photo ([MS-ODRAWXML] section 2.3.1) elements and cropped out areas of images in the workbook are not saved.

accuracyVersion: An unsignedInt attribute that specifies how functions are calculated in the workbook. SHOULD be equal to zero ("0").<46>

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_WorkbookPr">

<xsd:attribute name="defaultImageDpi" type="xsd:unsignedInt" default="220"/>

<xsd:attribute name="discardImageEditData" type="xsd:boolean" default="false"/>

<xsd:attribute name="accuracyVersion" type="xsd:unsignedInt" default="0"/>

</xsd:complexType>

See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: