Partager via


AutoCaptions Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Wordprocessing.AutoCaptions

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(AutoCaption))> _
Public Class AutoCaptions _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As AutoCaptions
[ChildElementInfoAttribute(typeof(AutoCaption))]
public class AutoCaptions : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • AutoCaption <w:autoCaption>

[ISO/IEC 29500-1 1st Edition]

17.15.1.8 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 (§17.15.1.16).

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

DocumentFormat.OpenXml.Wordprocessing.AutoCaptionsDocumentFormat.OpenXml.Wordprocessing.AutoCaptions

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

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

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 (§17.15.1.17)

Child Elements

Subclause

autoCaption (Single Automatic Captioning Setting)

§17.15.1.7

[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

Reference

AutoCaptions Members

DocumentFormat.OpenXml.Wordprocessing Namespace