w:link (Linked Style)

Links a paragraph style to a corresponding character style (or vice versa) for inline application.

Parent elements

Description

w:link creates a link between a paragraph style and its corresponding character style (or vice versa). It is defined in ECMA-376 Part 1 §17.7.4.6.

When a paragraph style has a linked character style (via w:link), the user can apply just the character portion of the style to a run without affecting paragraph-level properties. Built-in heading styles are typically linked to corresponding character styles (e.g. Heading1Char).

Attributes

Attribute Type Possible Values Description
w:val ST_String The styleId of the linked style. References the linked character or paragraph style.

Examples

<w:style w:type="paragraph" w:styleId="Heading1">
  <w:link w:val="Heading1Char"/>
</w:style>