ListEntries.Add Method
Returns a ListEntry object that represents an item added to a drop-down form field.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
Name As String, _
ByRef Index As Object _
) As ListEntry
'Usage
Dim instance As ListEntries
Dim Name As String
Dim Index As Object
Dim returnValue As ListEntry
returnValue = instance.Add(Name, Index)
ListEntry Add(
string Name,
ref Object Index
)
Parameters
- Name
Type: System.String
Required String. The name of the drop-down form field item.
- Index
Type: System.Object%
Optional Object. A number that represents the position of the item in the list.
Return Value
Type: Microsoft.Office.Interop.Word.ListEntry