共用方式為


BookViews Class

Workbook Views.When the object is serialized out as xml, its qualified name is x:bookViews.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.BookViews

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(WorkbookView))> _
Public Class BookViews _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As BookViews
[ChildElementInfoAttribute(typeof(WorkbookView))]
public class BookViews : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • WorkbookView <x:workbookView>

[ISO/IEC 29500-1 1st Edition]

18.2.1 bookViews (Workbook Views)

This element specifies the collection of workbook views of the enclosing workbook. Each view can specify a window position, filter options, and other configurations. There is no limit on the number of workbook views that can be defined for a workbook.

[Example:

<bookViews>
<workbookView showHorizontalScroll="0" showVerticalScroll="0"
showSheetTabs="0" xWindow="120" yWindow="45" windowWidth="15135"
windowHeight="8130" activeTab="2" autoFilterDateGrouping="0"/>
</bookViews>

end example]

Parent Elements

workbook (§18.2.27)

Child Elements

Subclause

workbookView (Workbook View)

§18.2.30

[Note: The W3C XML Schema definition of this element’s content model (CT_BookViews) 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

BookViews Members

DocumentFormat.OpenXml.Spreadsheet Namespace