Specifies the font alignment attributes to use for cells to which the defined style is applied.
<Alignment
Horizontal="xsd:string"
ReadingOrder="xsd:string"
Indent="xsd:unsignedLong"
Rotate="xsd:double"
ShrinkToFit="TrueFalseType"
Vertical="xsd:string"
VerticalText="TrueFalseType"
WrapText="TrueFalseType"
/>
| Element type | AlignmentType |
| Namespace | urn:schemas-microsoft-com:office:spreadsheet |
| Schema name | XML Spreadsheet 2002 |
| Element | Description |
|---|---|
| Style | Defines a single style in the current workbook. This element is required for custom formatting; otherwise, it is optional. |
None.
| Attribute | Type | Required | Description | Possible Values |
|---|---|---|---|---|
| Horizontal | Anonymous | optional | Specifies the left-to-right alignment of text within a cell. |
|
| ReadingOrder | Anonymous | optional | Specifies the default right-to-left text entry mode for a cell. |
|
| Indent | xsd:unsignedLong | optional | Specifies the number of indents. This attribute is not supported by the Spreadsheet component. | See external namespace. |
| Rotate | Anonymous | optional | Specifies the rotation of text within a cell. | minInclusive = -90 maxInclusive = 90 |
| ShrinkToFit | TrueFalseType | optional | Specifies whether text size should be shrunk so that all of the text fits within a cell. |
|
| Vertical | Anonymous | optional | Specifies the top-to-bottom alignment of text within a cell. |
|
| VerticalText | TrueFalseType | optional | Specifies whether text characters are positioned to read vertically. |
|
| WrapText | TrueFalseType | optional | Specifies whether the text in a cell should wrap at the cell boundary. |
|
<xsd:element name="Alignment" type="AlignmentType" minOccurs="0" >
</xsd:element>