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)
Syntax
'Declaration
Public ReadOnly Property TablesOfFigures As TablesOfFigures
public TablesOfFigures TablesOfFigures { get; }
Property Value
Type: Microsoft.Office.Interop.Word.TablesOfFigures
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 Sub DocumentTablesOfFigures()
Dim Caption As Object = Word.WdCaptionLabelID.wdCaptionFigure
Me.TablesOfFigures.Add(Me.Application.Selection.Range, Caption)
End Sub
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);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.