<clickAndTypeStyle> (Paragraph Style Applied to Automatically Generated Paragraphs)

This element specifies the paragraph style, specified using the <style> element, which shall be applied to paragraphs which are automatically created when text is inserted into a WordprocessingML document in an area of the document that has no other style associated with it. This style is referenced via the @val attribute, which stores the style ID of the style (stored in the <styleId> attribute on the style definition).

[: Consider a WordprocessingML document opened in an application that allows users to place their cursor anywhere within the document editing canvas and enter text. The clickAndTypeStyle element should be used to specify the paragraph style to be associated with the paragraph of text entered after a user places their cursor somewhere in the blank document that results in the generation of new paragraphs. ]

If this element is omitted, then the default paragraph style (the paragraph style whose default attribute is set to true), shall be used for automatically generated paragraphs. If the style whose <styleId> is specified using the @val attribute is not a paragraph style or does not exist in the document, then the default paragraph style shall be used instead.


This is accomplished by specifying a <clickAndTypeStyle> element with a @val attribute equal to the value of the ID of the desired style. This constraint would be specified using the following WordprocessingML:

<w:clickAndTypeStyle w:val="BalloonText" />

The corresponding style in the styles part would be defined as follows:

<w:style w:type="paragraph" w:styleId="BalloonText"></w:style>

The <clickAndTypeStyle> element specifies the use of the paragraph style with the style ID of BalloonText. ]

Parent Elements




<val> (String Value)

Specifies that its contents will contain a string.

The contents of this string are interpreted based on the context of the parent XML element.

  <w:pStyle w:val="heading1" /> 

The value of the @val attribute is the ID of the associated paragraph style's styleId.

However, consider the following fragment:

  <w:alias w:val="SDT Title Example" />

In this case, the decimal number in the @val attribute is the caption of the parent structured document tag. In each case, the value is interpreted in the context of the parent element. ]

The possible values for this attribute are defined by the ST_String simple type (§2.18.89).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_String">
	<attribute name="val" type="ST_String" use="required"/>