Font element

Defines the font characteristics to use for cells to which the defined style is applied.

Usage

      
<Font
	Bold="TrueFalseType"
	Color="xsd:string"
	FontName="xsd:string"
	Italic="TrueFalseType"
	Outline="TrueFalseType"
	Shadow="TrueFalseType"
	Size="PositiveDoubleType"
	StrikeThrough="TrueFalseType"
	Underline="xsd:string"
	VerticalAlign="xsd:string"
	x:CharSet="[external type]"
	x:Family="[external type]"
/>

    

Element Information

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

Elements and Attributes

Parent Elements

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

Child Elements

None.

Attributes

Attribute Type Required Description Possible Values
Bold TrueFalseType optional Specifies whether a font is bold.
  • 0
  • 1
Color xsd:string optional Specifies the color of a font. See external namespace.
FontName Anonymous optional Specifies the name of the font.

minLength = 1

Italic TrueFalseType optional Specifies whether a font is italic.
  • 0
  • 1
Outline TrueFalseType optional Specifies whether a font is rendered as an outline. This property is used only on the Macintosh.
  • 0
  • 1
Shadow TrueFalseType optional Specifies whether a font is shadowed. This property is used only on the Macintosh.
  • 0
  • 1
Size PositiveDoubleType optional Specifies the size of a font in points.

minInclusive = 0

StrikeThrough TrueFalseType optional Specifies whether a font is displayed using the strikethrough style.
  • 0
  • 1
Underline Anonymous optional Specifies whether a font is displayed underlined.
  • None
  • Single
  • Double
  • SingleAccounting
  • DoubleAccounting
VerticalAlign Anonymous optional Specifies the vertical alignment of a font.
  • None
  • Subscript
  • Superscript
x:CharSet external ref optional See external namespace. See external namespace.
x:Family external ref optional See external namespace. See external namespace.

Definition

      
<xsd:element name="Font" type="FontType" minOccurs="0" >
</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