Lists Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A collection of List objects that represent all the lists in the specified document.
public interface class Lists : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020993-0000-0000-C000-000000000046")]
public interface Lists : System.Collections.IEnumerable
type Lists = interface
interface IEnumerable
Public Interface Lists
Implements IEnumerable
- Attributes
- Implements
Remarks
Use the Lists property to return the Lists collection.
Use Lists(index
), where index
is the index number, to return a single List object.
When you use a For Each...Next loop to enumerate the Lists collection, the lists in a document are returned in reverse order.
To add a new list to a document, use the ApplyListTemplate(ListTemplate, Object, Object, Object) method with the ListFormat object for a specified range.
You can manipulate the individual List objects within a document, but for more precise control you should work with the ListFormat object.
Picture-bulleted lists are not included in the Lists collection.
Properties
Application |
Returns a Application object that represents the Microsoft Word application. |
Count |
Returns the number of items in the specified collection. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. |
Item[Int32] |
Returns an individual object in a collection. |
Parent |
Returns an object that represents the parent object of the specified object. |
Methods
GetEnumerator() |