DocumentBase.TablesOfFigures Property

 

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

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public TablesOfFigures TablesOfFigures { get; }

Property Value

Type: Microsoft.Office.Interop.Word.TablesOfFigures

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

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);
}
Return to top
Show: