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)

Usage

Dim Name As String
Dim Index As Object
Dim returnValue As ListEntry
Dim listEntries1 As ListEntries
returnValue = listEntries1.Add(Name, Index)

Syntax

Function Add( _
    <InAttribute()> ByVal Name As String, _
    <InAttribute()> Optional ByRef Index As Object _
) As ListEntry
ListEntry Add(
    [In] string Name, 
    [In, Optional] ref object Index
);
public: ListEntry^ Add(
    String^ Name, 
    &Object^ Index
);
public ListEntry Add(
    /*in*/System.String Name, 
    /*in*/System.Object Index
);
function Add(
     Name : String, 
     Index : Object
) : ListEntry;

Parameters

  • Name
    Required String. The name of the drop-down form field item.
  • Index
    Optional Object. A number that represents the position of the item in the list.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

ListEntries Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

ListEntries Members