# Styles element

Contains the style definitions for the current worksheet. This element is required for custom formatting; otherwise, it is optional.

## Usage

    <Styles />

## Element Information

Element type | Anonymous
Namespace | urn:schemas-microsoft-com:office:spreadsheet
Schema name | XML Spreadsheet 2002

## Elements and Attributes

### Parent Elements

Element | Description
--- | ---
Workbook | Defines a workbook that will contain one or more Worksheet elements.

### Child Elements

Element | Description
--- | ---
Style | Defines a single style in the current workbook. This element is required for custom formatting; otherwise, it is optional.

### Attributes

None.

## Definition

    <xsd:element name="Styles" minOccurs="0" >
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="Style" type="StyleType" minOccurs="0" maxOccurs="unbounded">
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp