<sheetView>
(Worksheet View)
A single sheet view definition. When more than 1 sheet view is defined in the file, it means that when opening the workbook, each sheet view corresponds to a separate window within the spreadsheet application, where each window is showing the particular sheet. containing the same @workbookViewId
value, the last <sheetView>
definition is loaded, and the others are discarded. When multiple windows are viewing the same sheet, multiple <sheetView>
elements (with corresponding <workbookView>
entries) are saved.
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
Attributes |
Description |
---|---|
|
Index to the color value for row/column text headings and gridlines. This is an 'index color value' (ICV) rather than rgb value. The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
|
Flag indicating that the consuming application should use the default grid lines color (system dependent). Overrides any color specified in The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether the sheet is in 'right to left' display mode. When in this mode, Column A is on the far right, Column B ;is one column left of Column A, and so on. Also, information in cells is displayed in the Right to Left format. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether this sheet should display formulas. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether this sheet should display gridlines. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether the sheet has outline symbols visible. This flag shall always override The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether the sheet should display row and column headings. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Show the ruler in Page Layout View. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether page layout view shall display margins. False means do not display left, right, top (header), and bottom (footer) margins (even when there is data in the header or footer). The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether the window should show 0 (zero) in cells containing zero value. When false, cells with zero value appear blank instead of showing the number zero. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Flag indicating whether this sheet is selected. When only 1 sheet is selected and active, this value should be in synch with the Note: multiple sheets can be selected, but only one sheet can be active at one time. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Location of the top left visible cell Location of the top left visible cell in the bottom right pane (when in Left-to-Right mode). The possible values for this attribute are defined by the ST_CellRef simple type (§3.18.8). |
|
Indicates view type. The possible values for this attribute are defined by the ST_SheetViewType simple type (§3.18.71). |
|
Flag indicating whether the panes in the window are locked due to workbook protection. This is an option when the workbook structure is protected. The possible values for this attribute are defined by the XML Schema boolean datatype. |
|
Zero-based index of this workbook view, pointing to a The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
|
Window zoom magnification for current view representing percent values. Valid values range from 10 to 400. Horizontal & Vertical scale together. For example: 10 - 10% 20 - 20% … 100 - 100% … 400 - 400% Current view can be Normal, Page Layout, or Page Break Preview. The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
|
Zoom magnification to use when in normal view, representing percent values. Valid values range from 10 to 400. Horizontal & Vertical scale together. For example: 10 - 10% 20 - 20% … 100 - 100% … 400 - 400% Applies for worksheet sheet type only; zero implies the automatic setting. The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
|
Zoom magnification to use when in page layout view, representing percent values. Valid values range from 10 to 400. Horizontal & Vertical scale together. For example: 10 - 10% 20 - 20% … 100 - 100% … 400 - 400% Applies for worksheet sheet type only; zero implies the automatic setting. The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
|
Zoom magnification to use when in page break preview, representing percent values. Valid values range from 10 to 400. Horizontal & Vertical scale together. For example: 10 - 10% 20 - 20% … 100 - 100% … 400 - 400% Applies for worksheet only; zero implies the automatic setting. The possible values for this attribute are defined by the XML Schema unsignedInt datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_SheetView">
<sequence>
<element name="pane" type="CT_Pane" minOccurs="0" maxOccurs="1"/>
<element name="selection" type="CT_Selection" minOccurs="0" maxOccurs="4"/>
<element name="pivotSelection" type="CT_PivotSelection" minOccurs="0" maxOccurs="4"/>
<element name="extLst" minOccurs="0" maxOccurs="1" type="CT_ExtensionList"/>
</sequence>
<attribute name="windowProtection" type="xsd:boolean" use="optional" default="false"/>
<attribute name="showFormulas" type="xsd:boolean" use="optional" default="false"/>
<attribute name="showGridLines" type="xsd:boolean" use="optional" default="true"/>
<attribute name="showRowColHeaders" type="xsd:boolean" use="optional" default="true"/>
<attribute name="showZeros" type="xsd:boolean" use="optional" default="true"/>
<attribute name="rightToLeft" type="xsd:boolean" use="optional" default="false"/>
<attribute name="tabSelected" type="xsd:boolean" use="optional" default="false"/>
<attribute name="showRuler" type="xsd:boolean" use="optional" default="true"/>
<attribute name="showOutlineSymbols" type="xsd:boolean" use="optional" default="true"/>
<attribute name="defaultGridColor" type="xsd:boolean" use="optional" default="true"/>
<attribute name="showWhiteSpace" type="xsd:boolean" use="optional" default="true"/>
<attribute name="view" type="ST_SheetViewType" use="optional" default="normal"/>
<attribute name="topLeftCell" type="ST_CellRef" use="optional"/>
<attribute name="colorId" type="xsd:unsignedInt" use="optional" default="64"/>
<attribute name="zoomScale" type="xsd:unsignedInt" use="optional" default="100"/>
<attribute name="zoomScaleNormal" type="xsd:unsignedInt" use="optional" default="0"/>
<attribute name="zoomScaleSheetLayoutView" type="xsd:unsignedInt" use="optional" default="0"/>
<attribute name="zoomScalePageLayoutView" type="xsd:unsignedInt" use="optional" default="0"/>
<attribute name="workbookViewId" type="xsd:unsignedInt" use="required"/>
</complexType>