Pane.TOCInFrameset Method
Creates a table of contents based on the specified document and puts it in a new frame on the left side of the frames page.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub TOCInFrameset
'Usage
Dim instance As Pane
instance.TOCInFrameset()
void TOCInFrameset()
Remarks
For more information on creating frames pages, see [Creatingframespages#SameCHM].
Examples
This example opens a file named "Proposal.doc", creates a frames page based on the file, and adds a frame (on the left side of the page) containing a table of contents for the file.
Documents.Open "C:\Documents\Proposal.doc"
ActiveDocument.ActiveWindow.ActivePane.NewFrameset
ActiveDocument.ActiveWindow.ActivePane.TOCInFrameset