Sdílet prostřednictvím


DocumentBase.TablesOfFigures – vlastnost

Získá TablesOfFigures kolekce, která představuje tabulky seznam obrázků v dokumentu.

Obor názvů:  Microsoft.Office.Tools.Word
Sestavení:  Microsoft.Office.Tools.Word.v4.0.Utilities (v Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntaxe

'Deklarace
Public ReadOnly Property TablesOfFigures As TablesOfFigures
public TablesOfFigures TablesOfFigures { get; }

Hodnota vlastnosti

Typ: Microsoft.Office.Interop.Word.TablesOfFigures
A TablesOfFigures kolekce, která představuje tabulky seznam obrázků v dokumentu.

Příklady

Následující příklad kódu přidá seznam obrázků na pozici kurzoru v aktivním dokumentu.Tento příklad předpokládá, že dokument obsahuje jeden nebo více titulků.Chcete-li tento příklad použít, spusťte jej ze třídy ThisDocument v projektu na úrovni dokumentu.

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);
}

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

DocumentBase Třída

Microsoft.Office.Tools.Word – obor názvů