[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

SUBJECT

Syntax:

SUBJECT [ field-argument ] [ switch ]

Description: Retrieves, and optionally sets, the document's subject, as recorded in the Subject element of the Core File Properties part or, if field-argument is present, the subject specified by text in field-argument. Specifying a field-argument shall change Subject to text.

Field Value: The document's subject.

Switches: One of the following general-formatting-switches: \* Caps, \* FirstCap, \* Lower, or \* Upper.

[Example: Consider the case in which the Title element is as follows:

   <Subject>A specification for fields</Subject>

and the following field is updated:

SUBJECT

The result is:

A specification for fields

Updating the following field:

SUBJECT "A specification for WordprocessingML Fields"

causes the Subject element to take on the given value. end example]