DocumentBase.TablesOfFigures Property

Definition

Gets a TablesOfFigures collection that represents the tables of figures in the document.

public Microsoft.Office.Interop.Word.TablesOfFigures TablesOfFigures { get; }

Property Value

A TablesOfFigures collection that represents the tables of figures in the document.

Examples

The following code example adds a table of figures at the insertion point in the active document. This example assumes that the document has one or more figure captions. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentTablesOfFigures()
{
    object Caption = Word.WdCaptionLabelID.wdCaptionFigure;
    this.TablesOfFigures.Add(this.Application.Selection.Range,
        ref Caption, ref missing, ref missing, ref missing,
        ref missing, ref missing, ref missing, ref missing,
        ref missing, ref missing, ref missing, ref missing);
}

Applies to