AutoCaptions Interface 

A collection of AutoCaption objects that represent the captions that can be automatically added when items such as tables, pictures, or OLE objects are inserted into a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class utoCaptionsImplementation
    Implements AutoCaptions
End Class
Dim utoCaptionsImplementation1 As New utoCaptionsImplementation()

Syntax

Public Interface AutoCaptions
    Inherits IEnumerable
public interface AutoCaptions : IEnumerable
public interface class AutoCaptions : public IEnumerable
public interface AutoCaptions implements IEnumerable
public interface AutoCaptions implements IEnumerable

Remarks

Use the AutoCaptions property to return the AutoCaptions collection.

The AutoCaptions collection contains all the captions listed in the AutoCaption dialog box (Insert menu). AutoCaption objects cannot be programmatically added to or deleted from the AutoCaptions collection.

Use AutoCaptions(index), where index is the caption name or index number, to return a single AutoCaption object. The caption names correspond to the items listed in the AutoCaption dialog box (Insert menu). You must exactly match the spelling (but not necessarily the capitalization) of the name, as it's shown in the AutoCaption dialog box.

The index number represents the position of the AutoCaption object in the list of captions in the AutoCaption dialog box.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

AutoCaptions Members