Share via


NumberingStyleLink Class

Numbering Style Reference.When the object is serialized out as xml, its qualified name is w:numStyleLink.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.String253Type
        DocumentFormat.OpenXml.Wordprocessing.NumberingStyleLink

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class NumberingStyleLink _
    Inherits String253Type
'Usage
Dim instance As NumberingStyleLink
public class NumberingStyleLink : String253Type

Remarks

[ISO/IEC 29500-1 1st Edition]

17.9.22 numStyleLink (Numbering Style Reference)

This element specifies an abstract numbering that does not contain the actual numbering properties for its numbering type, but rather serves as a reference to a numbering style stored in the document, which shall be applied when this abstract numbering definition is referenced, and itself points at the actual underlying abstract numbering definition to be used.

The numbering style that is to be applied when this abstract numbering definition is referenced is identified by the string contained in numStyleLink's val attribute.

[Example: Consider the abstract numbering definition below:

<w:abstractNum w:abstractNumId="0">
<w:nsid w:val="38901FA4" />
<w:multiLevelType w:val="multilevel" />
<w:numStyleLink w:val="TestNumberingStyle" />
</w:abstractNum>

This abstract numbering definition references the numbering style with a styleId attribute equal to TestNumberingStyle, as follows below:

<w:style w:type="numbering" w:styleId="TestNumberingStyle">
  …
</w:style>

Therefore, this numbering style must be applied whenever the base abstract numbering definition is inherited by a numbered paragraph. end example]

Parent Elements

abstractNum (§17.9.1)

Attributes

Description

val (String Value)

Specifies that its contents contain a string.

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

[Example: Consider the following WordprocessingML fragment:

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

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

However, consider the following fragment:

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

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. end example]

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

[Note: The W3C XML Schema definition of this element’s content model (CT_String) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

NumberingStyleLink Members

DocumentFormat.OpenXml.Wordprocessing Namespace