AutoCaption.Caption Property
Caption Used for Automatic Captioning.Represents the attribte in schema: w:caption
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
<SchemaAttrAttribute(, "caption")> _
Public Property Caption As StringValue
Get
Set
'Uso
Dim instance As AutoCaption
Dim value As StringValue
value = instance.Caption
instance.Caption = value
[SchemaAttrAttribute(, "caption")]
public StringValue Caption { get; set; }
Property Value
Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the caption defined in using the caption element which shall be used to automatically label a given type of object inserted into a WordprocessingML document. The caption settings are linked by matching the value of this attribute with the name attribute on the corresponding caption element.
Consider the following WordprocessingML:
<w:captions>
<w:caption w:name="table" w:pos="below" w:chapNum="1" w:heading="0" w:noLabel="1" w:numFmt="upperRoman" />
<w:autoCaptions>
<w:autoCaption w:name="Paint.Picture" w:caption="table" />
</w:autoCaptions>
</w:captions>
The autoCaption element specifies, through the name attribute being set equal to wfwTable, that tables will automatically be labeled with the caption whose name attribute is equal to Table (specified by the caption element's name attribute having a value of Table).
The possible values for this attribute are defined by the ST_String simple type.