ListTemplates.Add Method

Returns a ListTemplate object that represents a new list template.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    ByRef OutlineNumbered As Object, _
    ByRef Name As Object _
) As ListTemplate
'Usage
Dim instance As ListTemplates
Dim OutlineNumbered As Object
Dim Name As Object
Dim returnValue As ListTemplate

returnValue = instance.Add(OutlineNumbered, _
    Name)
ListTemplate Add(
    ref Object OutlineNumbered,
    ref Object Name
)

Parameters

  • OutlineNumbered
    Type: System.Object%
    Optional Object. True to apply outline numbering to the new list template.
  • Name
    Type: System.Object%
    Optional Object. An optional name used for linking the list template to a LISTNUM field. You cannot use this name to index the list template in the collection.

Return Value

Type: Microsoft.Office.Interop.Word.ListTemplate

Remarks

You cannot use the Add method on ListTemplates objects returned from a ListGallery object. You can, however, modify the existing list templates in the galleries.

See Also

Reference

ListTemplates Interface

ListTemplates Members

Microsoft.Office.Interop.Word Namespace