AutoCaptions Class

Automatic Captioning Settings.When the object is serialized out as xml, its qualified name is w:autoCaptions.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(AutoCaption))> _
Public Class AutoCaptions _
    Inherits OpenXmlCompositeElement
Dim instance As AutoCaptions
public class AutoCaptions : OpenXmlCompositeElement


The following table lists the possible child types:

  • AutoCaption <w:autoCaption>

[ISO/IEC 29500-1 1st Edition] autoCaptions (Automatic Captioning Settings)

This element specifies that one or more types of objects, when inserted into a WordprocessingML document, are automatically be labeled with a specific caption defined using the caption element (§

[Example: Consider the following example illustrating a two page WordprocessingML document that has leveraged WordprocessingML to automatically label WordprocessingML tables with a specified caption.


This type of automatic captioning is specified using the following WordprocessingML fragment:

<w:caption w:name="Table" w:pos="below" w:chapNum="1" w:heading="2" w:numFmt="upperLetter" w:sep="8212" />
<w:autoCaption w:name="wfwTable" w:caption="Table" />

The autoCaptions element specifies set of objects that when inserted into a WordprocessingML document are automatically be labeled with a given caption. end example]

Parent Elements

captions (§

Child Elements


autoCaption (Single Automatic Captioning Setting)


[Note: The W3C XML Schema definition of this element’s content model (CT_AutoCaptions) 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


AutoCaptions Members

DocumentFormat.OpenXml.Wordprocessing Namespace