Dela via


Document.TablesOfFigures Property (2007 System)

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

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property TablesOfFigures As TablesOfFigures
'Usage
Dim instance As Document 
Dim value As TablesOfFigures 

value = instance.TablesOfFigures
[BrowsableAttribute(false)]
public TablesOfFigures TablesOfFigures { get; }
[BrowsableAttribute(false)]
public:
property TablesOfFigures^ TablesOfFigures {
    TablesOfFigures^ get ();
}
public function get TablesOfFigures () : TablesOfFigures

Property Value

Type: 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.

This example is for a document-level customization.

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

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace